Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_swhit0.h
Go to the documentation of this file.
1#ifndef D_A_SWHIT0_H
2#define D_A_SWHIT0_H
3
5#include "d/d_cc_d.h"
6
16public:
30
31 int getSwNo();
32 int getSwNo2();
33 u8 getEvNo();
34 u8 getTimer();
35 u8 getType();
36 void makeEventId();
37 int CreateHeap();
38 int CreateInit();
39 int create();
40 bool checkHit();
41 void setCombackTimer();
42 int endCombackTimer();
43 void onSwitch();
44 void offSwitch();
45 int DemoProc();
46 void orderEvent();
47 int actionOffWait();
48 int actionToOnReady();
49 int actionToOnOrder();
50 int actionToOnDemo();
51 int actionToOnDemo2();
52 int actionSwWait();
53 int actionOnWait();
54 void setDrawMtx();
55
56 inline int draw();
57 inline int execute();
58
59 void setActio(u8 i_action) { mAction = i_action; }
60 void onFlag(u16 i_flag) { mFlags |= i_flag; }
61 void offFlag(u16 i_flag) { mFlags &= ~i_flag; }
62 bool checkFlag(u16 i_flag) { return mFlags & i_flag; }
63
64 /* 0x570 */ J3DModel* mpModel;
65 /* 0x574 */ mDoExt_bckAnm mBck;
66 /* 0x590 */ mDoExt_brkAnm mBrk;
67 /* 0x5A8 */ Mtx field_0x5a8;
69 /* 0x614 */ dCcD_Sph mSph;
70 /* 0x74C */ u8 mHitWaitTimer;
71 /* 0x74D */ u8 mAction;
72 /* 0x74E */ u8 mReadyTimer;
73 /* 0x750 */ s16 mCombackTimer;
74 /* 0x752 */ s16 mSwWaitTimer;
75 /* 0x754 */ u16 mFlags;
76 /* 0x756 */ s16 mEventId;
77 /* 0x758 */ int mStaffId;
78};
79
80STATIC_ASSERT(sizeof(daSwhit0_c) == 0x75c);
81
82
83#endif /* D_A_SWHIT0_H */
Definition J3DModel.h:43
Definition d_cc_d.h:473
Definition d_cc_d.h:269
Crystal Switch (?)
Definition d_a_swhit0.h:15
void makeEventId()
Definition d_a_swhit0.cpp:53
Mtx field_0x5a8
Definition d_a_swhit0.h:67
void setActio(u8 i_action)
Definition d_a_swhit0.h:59
s16 mEventId
Definition d_a_swhit0.h:76
int create()
Definition d_a_swhit0.cpp:126
Action_e
Definition d_a_swhit0.h:17
@ ACTION_TOOL_TO_ON_DEMO_e
Definition d_a_swhit0.h:27
@ ACTION_TOOL_TO_ON_DEMO2_e
Definition d_a_swhit0.h:28
@ ACTION_ON_WAIT_e
Definition d_a_swhit0.h:24
@ ACTION_TO_ON_DEMO2_e
Definition d_a_swhit0.h:23
@ ACTION_TO_ON_READY_e
Definition d_a_swhit0.h:20
@ ACTION_TOOL_TO_ON_ORDER_e
Definition d_a_swhit0.h:26
@ ACTION_TO_ON_DEMO_e
Definition d_a_swhit0.h:22
@ ACTION_TOOL_TO_ON_READY_e
Definition d_a_swhit0.h:25
@ ACTION_SW_WAIT_e
Definition d_a_swhit0.h:18
@ ACTION_TO_ON_ORDER_e
Definition d_a_swhit0.h:21
@ ACTION_OFF_WAIT_e
Definition d_a_swhit0.h:19
u8 mAction
Definition d_a_swhit0.h:71
int getSwNo()
Definition d_a_swhit0.cpp:18
int mStaffId
Definition d_a_swhit0.h:77
void offSwitch()
Definition d_a_swhit0.cpp:192
void orderEvent()
Definition d_a_swhit0.cpp:222
int draw()
Definition d_a_swhit0.cpp:386
void offFlag(u16 i_flag)
Definition d_a_swhit0.h:61
int actionOnWait()
Definition d_a_swhit0.cpp:356
int CreateHeap()
Definition d_a_swhit0.cpp:62
u8 getType()
Definition d_a_swhit0.cpp:44
u16 mFlags
Definition d_a_swhit0.h:75
void setDrawMtx()
Definition d_a_swhit0.cpp:381
s16 mSwWaitTimer
Definition d_a_swhit0.h:74
int CreateInit()
Definition d_a_swhit0.cpp:94
int actionSwWait()
Definition d_a_swhit0.cpp:336
int actionToOnOrder()
Definition d_a_swhit0.cpp:271
u8 getTimer()
Definition d_a_swhit0.cpp:35
int DemoProc()
Definition d_a_swhit0.cpp:197
u8 getEvNo()
Definition d_a_swhit0.cpp:26
int getSwNo2()
Definition d_a_swhit0.cpp:22
u8 mHitWaitTimer
Definition d_a_swhit0.h:70
mDoExt_brkAnm mBrk
Definition d_a_swhit0.h:66
mDoExt_bckAnm mBck
Definition d_a_swhit0.h:65
u8 mReadyTimer
Definition d_a_swhit0.h:72
bool checkHit()
Definition d_a_swhit0.cpp:153
dCcD_Stts mColliderStts
Definition d_a_swhit0.h:68
void onFlag(u16 i_flag)
Definition d_a_swhit0.h:60
J3DModel * mpModel
Definition d_a_swhit0.h:64
int execute()
Definition d_a_swhit0.cpp:420
void setCombackTimer()
Definition d_a_swhit0.cpp:166
int actionToOnReady()
Definition d_a_swhit0.cpp:255
bool checkFlag(u16 i_flag)
Definition d_a_swhit0.h:62
void onSwitch()
Definition d_a_swhit0.cpp:186
int actionOffWait()
Definition d_a_swhit0.cpp:232
dCcD_Sph mSph
Definition d_a_swhit0.h:69
int actionToOnDemo()
Definition d_a_swhit0.cpp:290
int actionToOnDemo2()
Definition d_a_swhit0.cpp:306
int endCombackTimer()
Definition d_a_swhit0.cpp:176
s16 mCombackTimer
Definition d_a_swhit0.h:73
Definition f_op_actor.h:230
Definition m_Do_ext.h:151
Definition m_Do_ext.h:94
STATIC_ASSERT(sizeof(daSwhit0_c)==0x75c)
f32 Mtx[3][4]
Definition mtx.h:25
signed short int s16
Definition types.h:9
unsigned short int u16
Definition types.h:10
unsigned char u8
Definition types.h:8
Definition c_phase.h:17