Loading [MathJax]/extensions/tex2jax.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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 /* 80485FF8 */ int getSwNo();
32 /* 80486004 */ int getSwNo2();
33 /* 80486010 */ u8 getEvNo();
34 /* 8048602C */ u8 getTimer();
35 /* 80486048 */ u8 getType();
36 /* 80486064 */ void makeEventId();
37 /* 804860EC */ int CreateHeap();
38 /* 80486214 */ int CreateInit();
39 /* 804863B0 */ int create();
40 /* 8048668C */ bool checkHit();
41 /* 80486704 */ void setCombackTimer();
42 /* 80486788 */ int endCombackTimer();
43 /* 80486800 */ void onSwitch();
44 /* 80486858 */ void offSwitch();
45 /* 804868A8 */ int DemoProc();
46 /* 804869C4 */ void orderEvent();
47 /* 80486ABC */ int actionOffWait();
48 /* 80486BC4 */ int actionToOnReady();
49 /* 80486C28 */ int actionToOnOrder();
50 /* 80486CE4 */ int actionToOnDemo();
51 /* 80486D88 */ int actionToOnDemo2();
52 /* 80486EC4 */ int actionSwWait();
53 /* 80486FC0 */ int actionOnWait();
54 /* 804870E0 */ 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 d_cc_d.h:435
Crystal Switch (?)
Definition d_a_swhit0.h:15
void makeEventId()
Definition d_a_swhit0.cpp:58
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:136
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:207
void orderEvent()
Definition d_a_swhit0.cpp:239
int draw()
Definition d_a_swhit0.cpp:411
void offFlag(u16 i_flag)
Definition d_a_swhit0.h:61
int actionOnWait()
Definition d_a_swhit0.cpp:380
int CreateHeap()
Definition d_a_swhit0.cpp:68
u8 getType()
Definition d_a_swhit0.cpp:48
u16 mFlags
Definition d_a_swhit0.h:75
void setDrawMtx()
Definition d_a_swhit0.cpp:406
s16 mSwWaitTimer
Definition d_a_swhit0.h:74
int CreateInit()
Definition d_a_swhit0.cpp:102
int actionSwWait()
Definition d_a_swhit0.cpp:359
int actionToOnOrder()
Definition d_a_swhit0.cpp:291
u8 getTimer()
Definition d_a_swhit0.cpp:38
int DemoProc()
Definition d_a_swhit0.cpp:213
u8 getEvNo()
Definition d_a_swhit0.cpp:28
int getSwNo2()
Definition d_a_swhit0.cpp:23
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:164
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:446
void setCombackTimer()
Definition d_a_swhit0.cpp:178
int actionToOnReady()
Definition d_a_swhit0.cpp:274
bool checkFlag(u16 i_flag)
Definition d_a_swhit0.h:62
void onSwitch()
Definition d_a_swhit0.cpp:200
int actionOffWait()
Definition d_a_swhit0.cpp:250
dCcD_Sph mSph
Definition d_a_swhit0.h:69
int actionToOnDemo()
Definition d_a_swhit0.cpp:311
int actionToOnDemo2()
Definition d_a_swhit0.cpp:328
int endCombackTimer()
Definition d_a_swhit0.cpp:189
s16 mCombackTimer
Definition d_a_swhit0.h:73
Definition m_Do_ext.h:84
STATIC_ASSERT(sizeof(daSwhit0_c)==0x75c)
f32 Mtx[3][4]
Definition mtx.h:22
Definition d_a_hozelda.cpp:146
Definition d_a_npc_fguard.cpp:70
Definition d_a_hozelda.cpp:74
Definition d_a_hozelda.cpp:56
Definition d_a_hozelda.cpp:14
signed short int s16
Definition types.h:6
unsigned short int u16
Definition types.h:7
unsigned char u8
Definition types.h:5