Files
tp/libs/SSystem/SComponent/c_bg_w.cpp
T

46 lines
1.1 KiB
C++
Raw Normal View History

2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Generated By: dol2asm
// Translation Unit: c_bg_w
2021-04-01 02:07:58 +02:00
//
2020-12-03 17:58:53 -08:00
2021-04-01 02:07:58 +02:00
#include "SSystem/SComponent/c_bg_w.h"
2021-03-28 22:49:05 +02:00
#include "dol2asm.h"
#include "dolphin/types.h"
2021-02-20 23:11:44 -05:00
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Declarations:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 802681C0-802681C8 262B00 0008+00 0/0 1/1 0/0 .text Regist__9cBgW_BgIdFi */
2021-04-08 22:18:35 +02:00
void cBgW_BgId::Regist(int a1) {
2021-11-10 10:56:51 -08:00
m_id = a1;
2020-12-03 17:58:53 -08:00
}
2021-04-06 18:00:35 +02:00
/* 802681C8-802681D4 262B08 000C+00 0/0 2/2 0/0 .text Release__9cBgW_BgIdFv */
2021-04-08 22:18:35 +02:00
void cBgW_BgId::Release() {
2021-11-10 10:56:51 -08:00
m_id = 0x100;
2020-12-03 17:58:53 -08:00
}
2021-04-06 18:00:35 +02:00
/* 802681D4-802681E4 262B14 0010+00 0/0 7/7 121/121 .text ChkUsed__9cBgW_BgIdCFv */
2021-11-10 10:56:51 -08:00
bool cBgW_BgId::ChkUsed() const {
return m_id < 0x100;
2020-12-03 17:58:53 -08:00
}
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 802681E4-802681FC 262B24 0018+00 1/1 22/22 8/8 .text cBgW_CheckBGround__Ff */
2021-04-08 22:18:35 +02:00
bool cBgW_CheckBGround(float a1) {
return a1 >= 0.5f;
2020-12-03 17:58:53 -08:00
}
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 802681FC-80268210 262B3C 0014+00 1/1 6/6 0/0 .text cBgW_CheckBRoof__Ff */
2021-04-08 22:18:35 +02:00
bool cBgW_CheckBRoof(float a1) {
return a1 < (-4.0f / 5.0f);
2020-12-03 17:58:53 -08:00
}
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 80268210-80268260 262B50 0050+00 0/0 16/16 4/4 .text cBgW_CheckBWall__Ff */
2021-04-08 22:18:35 +02:00
bool cBgW_CheckBWall(float a1) {
if (!cBgW_CheckBGround(a1) && !cBgW_CheckBRoof(a1))
return true;
return false;
2021-03-28 22:49:05 +02:00
}