blob: 0e2d626c51d0f2d3b74f3113efdfbe4b28016453 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#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 */
|