Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
c_bg_s_lin_chk.h
Go to the documentation of this file.
1#ifndef C_BG_S_LIN_CHK_H
2#define C_BG_S_LIN_CHK_H
3
7
8class cBgS_LinChk : public cBgS_Chk, public cBgS_PolyInfo {
9public:
10 /* 0x024 */ cM3dGLin mLin;
11 /* 0x040 */ cXyz field_0x40;
12 /* 0x04C */ u32 mStts;
13 /* 0x050 */ bool mPreWallChk;
14 /* 0x051 */ bool mPreGroundChk;
15 /* 0x052 */ bool mPreRoofChk;
16 /* 0x053 */ bool mFrontFlag;
17 /* 0x054 */ bool mBackFlag;
18
19 enum Status {
20 STTS_HIT = 0x10,
21 STTS_ROOF_OFF = 0x20000000,
22 STTS_WALL_OFF = 0x40000000,
23 STTS_GROUND_OFF = 0x80000000,
24 };
25
26public:
28 void ct();
29 void Set2(const cXyz*, const cXyz*, unsigned int);
30 void PreCalc();
31 void GetCross();
32
33 virtual ~cBgS_LinChk();
34
35 void ClrHit() { mStts &= ~STTS_HIT; }
36 void SetHit() { mStts |= STTS_HIT; }
37 u32 ChkHit() const { return mStts & STTS_HIT; }
38 void SetCross(const cXyz& pos) { mLin.SetEnd(pos); }
39 cXyz& i_GetCross() { return mLin.GetEnd(); }
40 cXyz* GetCrossP() { return &mLin.GetEndP(); }
41 cM3dGLin* GetLinP() { return &mLin; }
42 bool ChkBackFlag() const { return mBackFlag; }
43 void onBackFlag() { mBackFlag = true; }
44 bool ChkFrontFlag() const { return mFrontFlag; }
45 void onFrontFlag() { mFrontFlag = true; }
46 bool GetPreWallChk() const { return mPreWallChk; }
47 bool GetPreGroundChk() const { return mPreGroundChk; }
48 bool GetPreRoofChk() const { return mPreRoofChk; }
49 cXyz* GetStartP() { return &mLin.GetStartP(); }
56};
57
58#endif /* C_BG_S_LIN_CHK_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition c_bg_s_chk.h:16
static u8 pos[12]
Definition d_a_obj_kago.cpp:839
Definition d_a_ep.cpp:136
void SetHit()
Definition c_bg_s_lin_chk.h:36
void onBackFlag()
Definition c_bg_s_lin_chk.h:43
void SetSttsWallOff()
Definition c_bg_s_lin_chk.h:53
cM3dGLin mLin
Definition c_bg_s_lin_chk.h:10
void ClrHit()
Definition c_bg_s_lin_chk.h:35
cBgS_LinChk()
Definition c_bg_s_lin_chk.cpp:9
bool ChkBackFlag() const
Definition c_bg_s_lin_chk.h:42
void onFrontFlag()
Definition c_bg_s_lin_chk.h:45
void SetSttsRoofOff()
Definition c_bg_s_lin_chk.h:51
cXyz field_0x40
Definition c_bg_s_lin_chk.h:11
bool GetPreRoofChk() const
Definition c_bg_s_lin_chk.h:48
cXyz * GetCrossP()
Definition c_bg_s_lin_chk.h:40
bool mPreRoofChk
Definition c_bg_s_lin_chk.h:15
void ct()
Definition c_bg_s_lin_chk.cpp:17
void SetSttsGroundOff()
Definition c_bg_s_lin_chk.h:55
void PreCalc()
Definition c_bg_s_lin_chk.cpp:38
virtual ~cBgS_LinChk()
Definition c_bg_s_lin_chk.cpp:14
bool mPreGroundChk
Definition c_bg_s_lin_chk.h:14
bool GetPreWallChk() const
Definition c_bg_s_lin_chk.h:46
bool GetPreGroundChk() const
Definition c_bg_s_lin_chk.h:47
bool mPreWallChk
Definition c_bg_s_lin_chk.h:13
void ClrSttsRoofOff()
Definition c_bg_s_lin_chk.h:50
cM3dGLin * GetLinP()
Definition c_bg_s_lin_chk.h:41
u32 ChkHit() const
Definition c_bg_s_lin_chk.h:37
bool mFrontFlag
Definition c_bg_s_lin_chk.h:16
cXyz * GetStartP()
Definition c_bg_s_lin_chk.h:49
void ClrSttsGroundOff()
Definition c_bg_s_lin_chk.h:54
u32 mStts
Definition c_bg_s_lin_chk.h:12
void GetCross()
bool mBackFlag
Definition c_bg_s_lin_chk.h:17
void SetCross(const cXyz &pos)
Definition c_bg_s_lin_chk.h:38
void ClrSttsWallOff()
Definition c_bg_s_lin_chk.h:52
cXyz & i_GetCross()
Definition c_bg_s_lin_chk.h:39
bool ChkFrontFlag() const
Definition c_bg_s_lin_chk.h:44
void Set2(const cXyz *, const cXyz *, unsigned int)
Definition c_bg_s_lin_chk.cpp:29
Status
Definition c_bg_s_lin_chk.h:19
@ STTS_WALL_OFF
Definition c_bg_s_lin_chk.h:22
@ STTS_ROOF_OFF
Definition c_bg_s_lin_chk.h:21
@ STTS_HIT
Definition c_bg_s_lin_chk.h:20
@ STTS_GROUND_OFF
Definition c_bg_s_lin_chk.h:23
Definition d_a_ep.cpp:134
Definition d_a_tag_allmato.cpp:99
const cXyz & GetStartP(void) const
Definition c_m3d_g_lin.h:25
const cXyz & GetEndP(void) const
Definition c_m3d_g_lin.h:30
cXyz & GetEnd()
Definition c_m3d_g_lin.h:32
void SetEnd(const cXyz &)
Definition c_m3d_g_lin.cpp:32
Definition d_a_hozelda.cpp:20
unsigned long u32
Definition types.h:10