Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_bg_s.h
Go to the documentation of this file.
1#ifndef D_BG_D_BG_S_H
2#define D_BG_D_BG_S_H
3
4#include "d/d_bg_w_base.h"
5#include "global.h"
6
7class dBgW;
8class fopAc_ac_c;
9
11public:
13 /* 0x04 */ bool m_used;
14 /* 0x08 */ u32 m_actor_id;
16 /* 0x10 vtable */
17
18public:
19 cBgS_ChkElm() { this->Init(); }
20 void Init();
21 void Release();
22
23 virtual ~cBgS_ChkElm() {}
24 virtual void Regist2(dBgW_Base*, fpc_ProcID, void*);
25
26 bool ChkUsed() const { return m_used; }
27}; // Size: 0x14
28
29STATIC_ASSERT(sizeof(cBgS_ChkElm) == 0x14);
30
31class cBgS {
32public:
33 /* 0x0000 */ cBgS_ChkElm m_chk_element[256];
34 /* 0x1400 vtable */
35
36public:
37 cBgS() {}
38 bool Regist(dBgW_Base*, fpc_ProcID, void*);
39 bool Release(dBgW_Base*);
42 static void* ConvDzb(void*);
43 fopAc_ac_c* GetActorPointer(int) const;
45 bool ChkPolySafe(cBgS_PolyInfo const&);
46 s32 GetGrpRoomId(cBgS_PolyInfo const&) const;
47 bool GetTriPla(cBgS_PolyInfo const&, cM3dGPla*) const;
48 bool GetTriPnt(cBgS_PolyInfo const&, cXyz*, cXyz*, cXyz*) const;
50 u32 GetGrpInf(cBgS_PolyInfo const&) const;
51
52 virtual ~cBgS() {}
53 virtual void Ct();
54 virtual void Dt();
55
57 return GetActorPointer(info.GetBgIndex());
58 }
59}; // Size: 0x1404
60
61class dBgS_Acch;
62
64
65class dBgS : public cBgS {
66public:
67 dBgS() {}
68 ~dBgS() {}
69 void Ct();
70 void Dt();
71 void ClrMoveFlag();
72 void Move();
74 bool ChkMoveBG(cBgS_PolyInfo const&);
79 int GetSpecialCode(cBgS_PolyInfo const&);
80 int GetMagnetCode(cBgS_PolyInfo const&);
84 int GetPolyAtt0(cBgS_PolyInfo const&);
85 int GetPolyAtt1(cBgS_PolyInfo const&);
86 int GetGroundCode(cBgS_PolyInfo const&);
91 int GetGrpSoundId(cBgS_PolyInfo const&);
100 bool SphChk(dBgS_SphChk*, void*);
102 csXyz* i_shapeAngle, bool param_5, bool param_6);
105 void MoveBgMatrixCrrPos(cBgS_PolyInfo const&, bool, cXyz*, csXyz*, csXyz*);
109
113}; // Size: 0x1404
114
119 bool param_3, cXyz* param_4, csXyz* param_5, csXyz* param_6);
121 bool param_3, cXyz* param_4, csXyz* param_5, csXyz* param_6);
123 bool param_3, cXyz* i_pos, csXyz* i_angle, csXyz* i_shapeAngle);
125
126#endif /* D_BG_D_BG_S_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition d_bg_s.h:10
bool ChkUsed() const
Definition d_bg_s.h:26
dBgW_Base * m_bgw_base_ptr
Definition d_bg_s.h:12
u32 m_actor_id
Definition d_bg_s.h:14
cBgS_ChkElm()
Definition d_bg_s.h:19
bool m_used
Definition d_bg_s.h:13
void Release()
Definition d_bg_s.cpp:29
virtual void Regist2(dBgW_Base *, fpc_ProcID, void *)
Definition d_bg_s.cpp:21
virtual ~cBgS_ChkElm()
Definition d_bg_s.h:23
fopAc_ac_c * m_actor_ptr
Definition d_bg_s.h:15
void Init()
Definition d_bg_s.cpp:13
Definition c_bg_s_shdw_draw.h:12
Definition d_bg_s_roof_chk.h:8
Definition d_bg_s_sph_chk.h:13
Definition d_bg_s_spl_grp_chk.h:8
Definition d_bg_w_base.h:26
PushPullLabel
Definition d_bg_w_base.h:28
Definition d_bg_w.h:252
STATIC_ASSERT(sizeof(cBgS_ChkElm)==0x14)
void dBgS_MoveBGProc_Typical(dBgW *param_0, void *param_1, cBgS_PolyInfo const &param_2, bool param_3, cXyz *param_4, csXyz *param_5, csXyz *param_6)
Definition d_bg_s.cpp:779
bool dBgS_CheckBGroundPoly(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:883
void dBgS_MoveBGProc_TypicalRotY(dBgW *param_0, void *param_1, cBgS_PolyInfo const &param_2, bool param_3, cXyz *param_4, csXyz *param_5, csXyz *param_6)
Definition d_bg_s.cpp:813
bool dBgS_CheckBRoofPoly(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:894
u8 dKy_pol_sound_get(cBgS_PolyInfo const *param_0)
Definition d_kankyo.cpp:4265
bool dBgS_CheckBWallPoly(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:872
f32 dBgS_GetNY(cBgS_PolyInfo const &poly)
Definition d_bg_s.cpp:905
void dBgS_MoveBGProc_Trans(dBgW *i_bgw, void *i_actor_ptr, cBgS_PolyInfo const &i_poly, bool param_3, cXyz *i_pos, csXyz *i_angle, csXyz *i_shapeAngle)
Definition d_bg_s.cpp:821
unsigned int fpc_ProcID
Definition f_pc_base.h:10
Definition d_a_ep.cpp:138
Definition d_a_ep.cpp:136
Definition d_a_ep.cpp:134
u16 GetBgIndex() const
Definition c_bg_s_poly_info.h:26
Definition d_a_ep.cpp:142
bool LineCross(cBgS_LinChk *)
u32 GetGrpInf(cBgS_PolyInfo const &) const
Definition d_bg_s.cpp:293
void ShdwDraw(cBgS_ShdwDraw *)
Definition d_bg_s.cpp:281
virtual ~cBgS()
Definition d_bg_s.h:52
f32 GroundCross(cBgS_GndChk *)
virtual void Dt()
Definition d_bg_s.cpp:98
fopAc_ac_c * GetActorPointer(int) const
Definition d_bg_s.cpp:213
bool Regist(dBgW_Base *, fpc_ProcID, void *)
Definition d_bg_s.cpp:41
bool ChkPolySafe(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:229
bool GetTriPnt(cBgS_PolyInfo const &, cXyz *, cXyz *, cXyz *) const
Definition d_bg_s.cpp:271
bool GetTriPla(cBgS_PolyInfo const &, cM3dGPla *) const
bool Release(dBgW_Base *)
Definition d_bg_s.cpp:73
fopAc_ac_c * GetActorPointer(cBgS_PolyInfo const &info) const
Definition d_bg_s.h:56
cBgS_ChkElm m_chk_element[256]
Definition d_bg_s.h:33
static void * ConvDzb(void *)
Definition d_bg_s.cpp:185
s32 GetGrpRoomId(cBgS_PolyInfo const &) const
Definition d_bg_s.cpp:248
dBgW_Base * GetBgWBasePointer(cBgS_PolyInfo const &) const
Definition d_bg_s.cpp:219
cBgS()
Definition d_bg_s.h:37
virtual void Ct()
Definition d_bg_s.cpp:90
Definition d_a_npc_fguard.cpp:122
Definition d_a_hozelda.cpp:20
Definition d_a_ep.cpp:66
Definition d_a_npc_fguard.cpp:115
Definition d_a_npc_fguard.cpp:109
bool ChkMoveBG_NoDABg(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:369
void MoveBgMatrixCrrPos(cBgS_PolyInfo const &, bool, cXyz *, csXyz *, csXyz *)
Definition d_bg_s.cpp:760
bool WaterChk(dBgS_SplGrpChk *chk)
Definition d_bg_s.h:110
s32 GetPolyColor(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:390
bool GetPolyAttackThrough(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:575
void Ct()
Definition d_bg_s.cpp:303
u32 ChkPolyHSStick(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:585
void Dt()
Definition d_bg_s.cpp:308
f32 RoofChk(dBgS_RoofChk *)
Definition d_bg_s.cpp:644
void Move()
Definition d_bg_s.cpp:322
u32 ChkGrpInf(cBgS_PolyInfo const &, u32)
Definition d_bg_s.cpp:546
void WallCorrect(dBgS_Acch *)
Definition d_bg_s.cpp:595
bool SphChk(dBgS_SphChk *, void *)
Definition d_bg_s.cpp:692
s32 GetCamMoveBG(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:496
bool SplGrpChk(dBgS_SplGrpChk *)
Definition d_bg_s.cpp:666
~dBgS()
Definition d_bg_s.h:68
BOOL GetHorseNoEntry(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:404
int GetMagnetCode(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:424
s32 GetRoomPathPntNo(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:526
u32 GetMtrlSndId(const cBgS_PolyInfo &param_0)
Definition d_bg_s.h:111
u32 GetUnderwaterRoofCode(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:446
s32 GetExitId(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:380
bool ChkMoveBG(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:353
fopAc_ac_c * PushPullCallBack(cBgS_PolyInfo const &, fopAc_ac_c *, s16, dBgW_Base::PushPullLabel)
Definition d_bg_s.cpp:851
void DebugDrawPoly(dBgW_Base *param_1)
Definition d_bg_s.h:112
void RideCallBack(cBgS_PolyInfo const &, fopAc_ac_c *)
Definition d_bg_s.cpp:831
s32 GetWallCode(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:456
void MoveBgCrrPos(cBgS_PolyInfo const &i_poly, bool param_1, cXyz *i_pos, csXyz *i_angle, csXyz *i_shapeAngle, bool param_5, bool param_6)
Definition d_bg_s.cpp:720
void ClrMoveFlag()
Definition d_bg_s.cpp:313
int GetPolyAtt0(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:466
int GetSpecialCode(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:414
int GetMonkeyBarsCode(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:435
s32 GetRoomCamId(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:506
int GetGrpSoundId(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:536
void WallCorrectSort(dBgS_Acch *)
Definition d_bg_s.cpp:620
void ArrowStickCallBack(cBgS_PolyInfo const &, fopAc_ac_c *, cXyz &)
Definition d_bg_s.cpp:841
bool Regist(dBgW_Base *, fopAc_ac_c *)
Definition d_bg_s.cpp:334
int GetPolyAtt1(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:476
int GetGroundCode(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:486
s32 GetRoomId(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:552
dBgS()
Definition d_bg_s.h:67
s32 GetRoomPathId(cBgS_PolyInfo const &)
Definition d_bg_s.cpp:516
void MoveBgTransPos(cBgS_PolyInfo const &i_poly, bool param_1, cXyz *i_pos, csXyz *i_angle, csXyz *i_shapeAngle)
Definition d_bg_s.cpp:741
Definition d_a_ep.cpp:19
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8