Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_obj_swhang.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_SWHANG_H
2#define D_A_OBJ_SWHANG_H
3
6#include "d/d_cc_d.h"
7#include "d/d_event_lib.h"
9
19public:
21
29
30 enum Flags {
31 /* 0x01 */ FLAGS_1 = 1 << 0,
32 /* 0x02 */ FLAGS_2 = 1 << 1,
33 };
34
39
40 /* 80CFB9D8 */ void initBaseMtx();
41 /* 80CFBA60 */ void setBaseMtx();
42 /* 80CFBDD0 */ int create1st();
43 /* 80CFC04C */ void calcHangPos();
44 /* 80CFC114 */ BOOL checkDown();
45 /* 80CFC194 */ void changeOnStatus();
46 /* 80CFC1F4 */ void changeOffStatus();
47 /* 80CFC4C4 */ void action();
48 /* 80CFC550 */ void checkDownSw();
49 /* 80CFC698 */ void init_modeOffWait();
50 /* 80CFC6AC */ void modeOffWait();
51 /* 80CFCA34 */ void init_modeOnWait();
52 /* 80CFCA40 */ void modeOnWait();
53 /* 80CFCCE0 */ BOOL eventStart();
54 /* 80CFD034 */ virtual ~daObjSwHang_c() {}
55
57
58 /* 80CFBCB8 */ virtual int CreateHeap();
59 /* 80CFBAC8 */ virtual int Create();
60 /* 80CFC254 */ virtual int Execute(Mtx**);
61 /* 80CFCD04 */ virtual int Draw();
62 /* 80CFCD98 */ virtual int Delete();
63
64 cXyz getHangPos() { return mHangPos; }
65
66 void setHangPlayer() { mHangPlayer = 1; }
67 u8 getType() { return mType; }
68 u8 getType_private() { return fopAcM_GetParamBit(this, 28, 4); }
69 u8 checkType() { return fopAcM_GetParamBit(this, 25, 1); }
70 u8 getSwNo() { return fopAcM_GetParamBit(this, 0, 8); }
71 u8 getKind() { return fopAcM_GetParamBit(this, 26, 2); }
72 u8 getEvId() { return fopAcM_GetParamBit(this, 8, 8); }
75 void clrFlag() { mFlags = 0; }
76 void onFlag(u16 flag) { mFlags |= flag; }
78
79private:
81 /* 0x5B8 */ J3DModel* mpModel;
82 /* 0x5BC */ dCcD_Stts mCcStts;
83 /* 0x5F8 */ dCcD_Sph mCcSph;
84 /* 0x730 */ u8 mType;
85 /* 0x731 */ u8 mMode;
86 /* 0x734 */ dBgW* mpBgW;
87 /* 0x738 */ Mtx field_0x738;
88 /* 0x768 */ int mTotteJointNo;
89 /* 0x76C */ f32 mHangLength;
90 /* 0x770 */ cXyz mHangPos;
91 /* 0x77C */ u8 mHangPlayer;
92 /* 0x77D */ u8 field_0x77d;
93 /* 0x77E */ u8 field_0x77e;
94 /* 0x780 */ u16 mFlags;
95 /* 0x784 */ f32 field_0x784;
96 /* 0x788 */ f32 field_0x788;
97 /* 0x78C */ s16 field_0x78c;
98};
99
100STATIC_ASSERT(sizeof(daObjSwHang_c) == 0x790);
101
102#endif /* D_A_OBJ_SWHANG_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:79
Definition d_bg_s_movebg_actor.h:10
Definition d_bg_w.h:252
Definition d_cc_d.h:432
Definition d_event_lib.h:24
Dangle A.
Definition d_a_obj_swhang.h:18
dCcD_Sph mCcSph
Definition d_a_obj_swhang.h:83
Mode
Definition d_a_obj_swhang.h:35
@ MODE_ON_WAIT
Definition d_a_obj_swhang.h:37
@ MODE_OFF_WAIT
Definition d_a_obj_swhang.h:36
void checkDownSw()
Definition d_a_obj_swhang.cpp:310
u8 field_0x77e
Definition d_a_obj_swhang.h:93
int getTotteJointNo()
Definition d_a_obj_swhang.h:73
BOOL checkDown()
Definition d_a_obj_swhang.cpp:221
u8 checkType()
Definition d_a_obj_swhang.h:69
virtual int Draw()
Definition d_a_obj_swhang.cpp:484
u8 mMode
Definition d_a_obj_swhang.h:85
int create1st()
Definition d_a_obj_swhang.cpp:191
void onFlag(u16 flag)
Definition d_a_obj_swhang.h:76
cXyz mHangPos
Definition d_a_obj_swhang.h:90
dCcD_Stts mCcStts
Definition d_a_obj_swhang.h:82
u8 field_0x77d
Definition d_a_obj_swhang.h:92
Flags
Definition d_a_obj_swhang.h:30
@ FLAGS_2
Definition d_a_obj_swhang.h:32
@ FLAGS_1
Definition d_a_obj_swhang.h:31
f32 field_0x788
Definition d_a_obj_swhang.h:96
virtual int Execute(Mtx **)
Definition d_a_obj_swhang.cpp:256
Mtx field_0x738
Definition d_a_obj_swhang.h:87
void initBaseMtx()
Definition d_a_obj_swhang.cpp:55
void(daObjSwHang_c::* modeFunc)()
Definition d_a_obj_swhang.h:20
request_of_phase_process_class mPhase
Definition d_a_obj_swhang.h:80
cXyz getHangPos()
Definition d_a_obj_swhang.h:64
virtual int Create()
Definition d_a_obj_swhang.cpp:127
u8 getType_private()
Definition d_a_obj_swhang.h:68
f32 getHangLength()
Definition d_a_obj_swhang.h:74
void modeOnWait()
Definition d_a_obj_swhang.cpp:429
dBgW * mpBgW
Definition d_a_obj_swhang.h:86
void modeOffWait()
Definition d_a_obj_swhang.cpp:359
void init_modeOnWait()
Definition d_a_obj_swhang.cpp:424
void calcHangPos()
Definition d_a_obj_swhang.cpp:207
void changeOnStatus()
Definition d_a_obj_swhang.cpp:236
int mTotteJointNo
Definition d_a_obj_swhang.h:88
BOOL eventStart()
Definition d_a_obj_swhang.cpp:478
void init_modeOffWait()
Definition d_a_obj_swhang.cpp:353
J3DModel * mpModel
Definition d_a_obj_swhang.h:81
virtual int CreateHeap()
Definition d_a_obj_swhang.cpp:170
u16 checkFlag(u16 flag)
Definition d_a_obj_swhang.h:77
u16 mFlags
Definition d_a_obj_swhang.h:94
u8 getKind()
Definition d_a_obj_swhang.h:71
f32 mHangLength
Definition d_a_obj_swhang.h:89
daObjSwHang_c()
Definition d_a_obj_swhang.h:56
virtual int Delete()
Definition d_a_obj_swhang.cpp:500
void changeOffStatus()
Definition d_a_obj_swhang.cpp:246
virtual ~daObjSwHang_c()
Definition d_a_obj_swhang.h:54
f32 field_0x784
Definition d_a_obj_swhang.h:95
void setBaseMtx()
Definition d_a_obj_swhang.cpp:65
u8 mType
Definition d_a_obj_swhang.h:84
Type
Definition d_a_obj_swhang.h:22
@ TYPE_3
Definition d_a_obj_swhang.h:26
@ TYPE_1
Definition d_a_obj_swhang.h:24
@ TYPE_0
Definition d_a_obj_swhang.h:23
@ TYPE_2
Definition d_a_obj_swhang.h:25
@ TYPE_4
Definition d_a_obj_swhang.h:27
u8 getSwNo()
Definition d_a_obj_swhang.h:70
u8 getType()
Definition d_a_obj_swhang.h:67
void action()
Definition d_a_obj_swhang.cpp:301
void clrFlag()
Definition d_a_obj_swhang.h:75
s16 field_0x78c
Definition d_a_obj_swhang.h:97
u8 mHangPlayer
Definition d_a_obj_swhang.h:91
u8 getEvId()
Definition d_a_obj_swhang.h:72
void setHangPlayer()
Definition d_a_obj_swhang.h:66
STATIC_ASSERT(sizeof(daObjSwHang_c)==0x790)
static volatile BOOL flag
Definition dspproc.cpp:20
u32 fopAcM_GetParamBit(void *ac, u8 shift, u8 bit)
Definition f_op_actor_mng.h:170
f32 Mtx[3][4]
Definition mtx.h:15
Definition d_a_ep.cpp:155
Definition d_a_hozelda.cpp:20
Definition d_a_npc_fguard.cpp:70
Definition d_a_hozelda.cpp:14
int BOOL
Definition types.h:27
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8