mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-02 09:39:48 -04:00
dfa8efa97b
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
46 lines
648 B
C++
46 lines
648 B
C++
/**
|
|
* c_bg_w.cpp
|
|
*
|
|
*/
|
|
|
|
#include "SSystem/SComponent/c_bg_w.h"
|
|
|
|
void cBgW_BgId::Regist(int id) {
|
|
m_id = id;
|
|
}
|
|
|
|
void cBgW_BgId::Release() {
|
|
m_id = 0x100;
|
|
}
|
|
|
|
bool cBgW_BgId::ChkUsed() const {
|
|
if (m_id < 0x100) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
bool cBgW_CheckBGround(float y) {
|
|
if (y >= 0.5f) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
bool cBgW_CheckBRoof(float y) {
|
|
if (y < (-4.0f / 5.0f)) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
bool cBgW_CheckBWall(float y) {
|
|
if (!cBgW_CheckBGround(y) && !cBgW_CheckBRoof(y))
|
|
return true;
|
|
|
|
return false;
|
|
}
|