Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_obj_mirror_screw.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_MIRROR_SCREW_H
2#define D_A_OBJ_MIRROR_SCREW_H
3
10
13
23public:
24 struct attr {
31 };
32
33 enum Action {
34 /* 0 */ ACT_WAIT,
35 /* 1 */ ACT_DOWN,
36 };
37
38 /* 80C98AD8 */ void initWait();
39 /* 80C98AE4 */ void executeWait();
40 /* 80C98C00 */ void initDown();
41 /* 80C98F04 */ void executeDown();
42 inline cPhs__Step create();
43 /* 80C992F4 */ int CreateHeap();
44 inline void setBaseMtx();
45 inline void initBaseMtx();
46 /* 80C99364 */ int Create();
47 /* 80C99490 */ int Execute(Mtx**);
48 /* 80C99608 */ int Draw();
49 /* 80C996AC */ int Delete();
50
51 u8 getSwitchNo() { return (fopAcM_GetParam(this) >> 8) & 0xff; }
52 u8 getEventID() { return (fopAcM_GetParam(this) >> 0x10) & 0xff; }
53
59
60 void callInit() {
61 (this->*mpActionFunc[0])();
62 }
63
64 void callExecute() {
65 (this->*mpActionFunc[1])();
66 }
67
68private:
69 /* 0x5A0 */ J3DModel* mpModel;
72 /* 0x5B0 */ int mAction;
74 /* 0x5B8 */ daTagSppath_c* mpSpPath;
79 /* 0x5CC */ int mSpinCount;
80 /* 0x5D0 */ u8 field_0x5d0[8];
82
83 static attr const M_attr;
85};
86
88
89#endif /* D_A_OBJ_MIRROR_SCREW_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
cPhs__Step
Definition c_phase.h:8
Definition d_bg_s_movebg_actor.h:10
Twilight Mirror Pole.
Definition d_a_obj_mirror_6pole.h:17
Twilight Mirror Chain.
Definition d_a_obj_mirror_chain.h:36
Twilight Mirror Sand.
Definition d_a_obj_mirror_sand.h:15
Twilight Mirror Screw.
Definition d_a_obj_mirror_screw.h:22
void initDown()
Definition d_a_obj_mirror_screw.cpp:75
static daObjMirrorScrew_actionFunc ActionTable[2][2]
Definition d_a_obj_mirror_screw.h:40
daObjMirrorScrew_actionFunc * mpActionFunc
Definition d_a_obj_mirror_screw.h:71
void initWait()
Definition d_a_obj_mirror_screw.cpp:52
int mAction
Definition d_a_obj_mirror_screw.h:72
u8 getSwitchNo()
Definition d_a_obj_mirror_screw.h:51
cPhs__Step create()
Definition d_a_obj_mirror_screw.cpp:177
void setBaseMtx()
Definition d_a_obj_mirror_screw.cpp:211
int Execute(Mtx **)
Definition d_a_obj_mirror_screw.cpp:244
int mSpinCount
Definition d_a_obj_mirror_screw.h:79
daTagSppath_c * mpSpPath
Definition d_a_obj_mirror_screw.h:74
static attr const M_attr
Definition d_a_obj_mirror_screw.h:29
u8 field_0x5d0[8]
Definition d_a_obj_mirror_screw.h:80
void initBaseMtx()
Definition d_a_obj_mirror_screw.cpp:218
daObjMirrorChain_c * mpChain
Definition d_a_obj_mirror_screw.h:75
cBgS_PolyInfo field_0x5d8
Definition d_a_obj_mirror_screw.h:81
J3DModel * mpModel
Definition d_a_obj_mirror_screw.h:69
u8 getEventID()
Definition d_a_obj_mirror_screw.h:52
daObjMirrorTable_c * mpTable
Definition d_a_obj_mirror_screw.h:76
void setAction(int i_action)
Definition d_a_obj_mirror_screw.h:54
int Draw()
Definition d_a_obj_mirror_screw.cpp:276
void callExecute()
Definition d_a_obj_mirror_screw.h:64
void callInit()
Definition d_a_obj_mirror_screw.h:60
int Create()
Definition d_a_obj_mirror_screw.cpp:224
daObjMirrorSand_c * mpSand
Definition d_a_obj_mirror_screw.h:78
int CreateHeap()
Definition d_a_obj_mirror_screw.cpp:205
Action
Definition d_a_obj_mirror_screw.h:33
@ ACT_DOWN
Definition d_a_obj_mirror_screw.h:35
@ ACT_WAIT
Definition d_a_obj_mirror_screw.h:34
request_of_phase_process_class mPhaseReq
Definition d_a_obj_mirror_screw.h:70
void executeDown()
Definition d_a_obj_mirror_screw.cpp:99
void executeWait()
Definition d_a_obj_mirror_screw.cpp:58
int Delete()
Definition d_a_obj_mirror_screw.cpp:287
daObjMirror6Pole_c * mp6Pole
Definition d_a_obj_mirror_screw.h:77
daObjSwSpinner_c * mpSwSpinner
Definition d_a_obj_mirror_screw.h:73
Twilight Mirror Table.
Definition d_a_obj_mirror_table.h:15
Spinner Switch.
Definition d_a_obj_swspinner.h:16
Definition d_a_tag_sppath.h:8
STATIC_ASSERT(sizeof(daObjMirrorScrew_c)==0x5E8)
void(daObjMirrorScrew_c::* daObjMirrorScrew_actionFunc)()
Definition d_a_obj_mirror_screw.h:12
u32 fopAcM_GetParam(const void *pActor)
Definition f_op_actor_mng.h:224
f32 Mtx[3][4]
Definition mtx.h:15
Definition d_a_ep.cpp:155
Definition d_a_ep.cpp:134
Definition d_a_obj_mirror_screw.h:24
f32 mDownDist
Definition d_a_obj_mirror_screw.h:25
f32 mRotSpeedThreshold
Definition d_a_obj_mirror_screw.h:26
f32 mDownSpeed
Definition d_a_obj_mirror_screw.h:30
int mSpinCount
Definition d_a_obj_mirror_screw.h:27
int mResetSpinCount
Definition d_a_obj_mirror_screw.h:28
f32 mSpeedStep
Definition d_a_obj_mirror_screw.h:29
Definition d_a_hozelda.cpp:14
float f32
Definition types.h:22
unsigned char u8
Definition types.h:8