Files
tww/include/d/d_bg_s_poly_pass_chk.h
T
Mattias Blum 5f287fcaee d_camera 28% (#732)
* initial progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* fix outdated member names

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* fixed deprecated member references

* more progress

* more progress

* more progress

* fix deprecated member references

* more progress

* more progress

* more progress

* more progress

* more progress

* check in for review

* remove comment

* initial PR changes

* more PR changes

* more PR changes

* added anonymous struct as class member

* reverted changes to `stage_camera2_data_class`

* added `dCamera_event_data`, `dCamera_monitoring_things` and `dCamera_DMC_system` from debug maps

* more progress

* more progress

* realmatch for `camera_draw`

* PR changes

* fix broken merge

* formatting

* Reverted change to `camSphChkdata` that caused  `sph_chk_callback` match to regress

* Reverted change to `BG` struct that caused ctor and dtor match to regress
2025-04-11 16:37:42 -04:00

56 lines
1.6 KiB
C++

#ifndef D_BG_D_BG_S_POLY_PASS_CHK_H
#define D_BG_D_BG_S_POLY_PASS_CHK_H
#include "global.h"
class cBgS_PolyPassChk {
public:
virtual ~cBgS_PolyPassChk() {}
/* 0x4 */ bool mbObjThrough;
/* 0x5 */ bool mbCamThrough;
/* 0x6 */ bool mbLinkThrough;
/* 0x7 */ bool mbArrowThrough; // Also light
/* 0x8 */ bool mbBombThrough;
/* 0x9 */ bool mbBoomerangThrough;
/* 0xA */ bool mbRopeThrough; // Actually Hookshot?
};
class dBgS_PolyPassChk : public cBgS_PolyPassChk {
public:
dBgS_PolyPassChk() {
mbObjThrough = false;
mbCamThrough = false;
mbLinkThrough = false;
mbArrowThrough = false;
mbBombThrough = false;
mbBoomerangThrough = false;
mbRopeThrough = false;
}
virtual ~dBgS_PolyPassChk() {}
void SetObj() { mbObjThrough = true; }
void SetCam() { mbCamThrough = true; }
void SetLink() { mbLinkThrough = true; }
void SetArrow() { mbArrowThrough = true; }
void SetBomb() { mbBombThrough = true; }
void SetBoomerang() { mbBoomerangThrough = true; }
void SetRope() { mbRopeThrough = true; }
void ClrObj() { mbObjThrough = false; }
void ClrCam() { mbCamThrough = false; }
void ClrLink() { mbLinkThrough = false; }
void ClrArrow() { mbArrowThrough = false; }
void ClrBomb() { mbBombThrough = false; }
void ClrBoomerang() { mbBoomerangThrough = false; }
void ClrRope() { mbRopeThrough = false; }
void SetPassChkInfo(dBgS_PolyPassChk& other) {
*this = other;
}
};
STATIC_ASSERT(sizeof(dBgS_PolyPassChk) == 0xC);
#endif /* D_BG_D_BG_S_POLY_PASS_CHK_H */