Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_obj_lv4CandleTag.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_LV4CANDLETAG_H
2#define D_A_OBJ_LV4CANDLETAG_H
3
4#include "d/d_event_lib.h"
6#include "m_Do/m_Do_hostIO.h"
7
8struct unknown {
9 u8 unk[8];
10};
11
12// dalv4CandleTag_c should inherit fopAc_ac_c, unknown, and dEvLib_callback_c
13// but this causes issues with weak function ordering
23public:
30
31 // dalv4CandleTag_c() : dEvLib_callback_c(this) {}
33
34 // These members are not real, remove once inheritance issue is resolved
37 void* mVtable;
38
39 /* 80C5D4B8 */ void setBaseMtx();
40 /* 80C5D4F0 */ cPhs__Step create();
41 /* 80C5D5D4 */ int Execute();
42 /* 80C5D618 */ void procMain();
43 /* 80C5D6D4 */ void init_modeWatch();
44 /* 80C5D6E0 */ void modeWatch();
45 /* 80C5D78C */ void init_modeNG();
46 /* 80C5D814 */ void modeNG();
47 /* 80C5D8A0 */ void init_modeNGWait();
48 /* 80C5D8AC */ void modeNGWait();
49 /* 80C5D8FC */ void init_modeEnd();
50 /* 80C5D908 */ void modeEnd();
51 /* 80C5D90C */ int eventStart();
52 /* 80C5D930 */ int Draw();
53 /* 80C5D938 */ int Delete();
54
55 u8 getSwTop() { return fopAcM_GetParamBit(this, 0, 8); }
56 u8 getSwOK() { return fopAcM_GetParamBit(this, 8, 8); }
57 u8 getSwNG() { return fopAcM_GetParamBit(this, 0x10, 8); }
58 u8 getSwTotal() { return fopAcM_GetParamBit(this, 0x18, 8); }
59 int getEventID() { return shape_angle.x & 0xff; }
60 u8 getNGSwStat() { return fopAcM_isSwitch(this, mSwNG); }
61
62 /* 0x584 */ u8 mMode;
63 /* 0x585 */ u8 mSwTop;
64 /* 0x586 */ u8 mSwOK;
65 /* 0x587 */ u8 mSwNG;
66 /* 0x588 */ u8 mSwTotal;
67 /* 0x589 */ u8 mTimer;
68};
69
71
73public:
74 /* 80C5D44C */ dalv4CandleTag_HIO_c();
75 /* 80C5D9C0 */ ~dalv4CandleTag_HIO_c() {}
76
78};
79
80#endif /* D_A_OBJ_LV4CANDLETAG_H */
cPhs__Step
Definition c_phase.h:8
Definition d_event_lib.h:24
Definition d_a_obj_lv4CandleTag.h:72
dalv4CandleTag_HIO_c()
Definition d_a_obj_lv4CandleTag.cpp:207
~dalv4CandleTag_HIO_c()
Definition d_a_obj_lv4CandleTag.h:75
u8 mTimer
Definition d_a_obj_lv4CandleTag.h:77
Arbiter's Grounds Torch Tag.
Definition d_a_obj_lv4CandleTag.h:22
unknown mBase2
Definition d_a_obj_lv4CandleTag.h:35
void setBaseMtx()
Definition d_a_obj_lv4CandleTag.cpp:218
u8 mSwOK
Definition d_a_obj_lv4CandleTag.h:64
int Execute()
Definition d_a_obj_lv4CandleTag.cpp:228
u8 getNGSwStat()
Definition d_a_obj_lv4CandleTag.h:60
cPhs__Step create()
Definition d_a_obj_lv4CandleTag.cpp:223
void modeNGWait()
Definition d_a_obj_lv4CandleTag.cpp:283
u8 mTimer
Definition d_a_obj_lv4CandleTag.h:67
void * mVtable
Definition d_a_obj_lv4CandleTag.h:37
void procMain()
Definition d_a_obj_lv4CandleTag.cpp:243
u8 getSwOK()
Definition d_a_obj_lv4CandleTag.h:56
dEvLib_callback_c mBase3
Definition d_a_obj_lv4CandleTag.h:36
void init_modeEnd()
Definition d_a_obj_lv4CandleTag.cpp:289
~dalv4CandleTag_c()
Definition d_a_obj_lv4CandleTag.h:32
int Delete()
Definition d_a_obj_lv4CandleTag.cpp:309
void modeEnd()
Definition d_a_obj_lv4CandleTag.cpp:294
u8 getSwTotal()
Definition d_a_obj_lv4CandleTag.h:58
u8 getSwTop()
Definition d_a_obj_lv4CandleTag.h:55
void init_modeNG()
Definition d_a_obj_lv4CandleTag.cpp:268
int Draw()
Definition d_a_obj_lv4CandleTag.cpp:304
void init_modeNGWait()
Definition d_a_obj_lv4CandleTag.cpp:278
int eventStart()
Definition d_a_obj_lv4CandleTag.cpp:299
u8 mMode
Definition d_a_obj_lv4CandleTag.h:62
void modeWatch()
Definition d_a_obj_lv4CandleTag.cpp:253
u8 mSwNG
Definition d_a_obj_lv4CandleTag.h:65
u8 mSwTotal
Definition d_a_obj_lv4CandleTag.h:66
void modeNG()
Definition d_a_obj_lv4CandleTag.cpp:273
u8 getSwNG()
Definition d_a_obj_lv4CandleTag.h:57
void init_modeWatch()
Definition d_a_obj_lv4CandleTag.cpp:248
Mode
Definition d_a_obj_lv4CandleTag.h:24
@ MODE_NG_WAIT
Definition d_a_obj_lv4CandleTag.h:27
@ MODE_WATCH
Definition d_a_obj_lv4CandleTag.h:25
@ MODE_NG
Definition d_a_obj_lv4CandleTag.h:26
@ MODE_END
Definition d_a_obj_lv4CandleTag.h:28
int getEventID()
Definition d_a_obj_lv4CandleTag.h:59
u8 mSwTop
Definition d_a_obj_lv4CandleTag.h:63
Definition m_Do_hostIO.h:5
STATIC_ASSERT(sizeof(dalv4CandleTag_c)==0x58C)
u32 fopAcM_GetParamBit(void *ac, u8 shift, u8 bit)
Definition f_op_actor_mng.h:228
BOOL fopAcM_isSwitch(const fopAc_ac_c *pActor, int sw)
Definition f_op_actor_mng.h:433
s16 x
Definition vec.h:19
Definition d_a_ep.cpp:19
csXyz shape_angle
Definition f_op_actor.h:216
Definition d_a_obj_lv4CandleTag.h:8
u8 unk[8]
Definition d_a_obj_lv4CandleTag.h:9
unsigned char u8
Definition types.h:8