Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_obj_lv2Candle.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_LV2CANDLE_H
2#define D_A_OBJ_LV2CANDLE_H
3
4#include "d/d_cc_d.h"
5#include "m_Do/m_Do_hostIO.h"
7
8
17class daLv2Candle_c : public fopAc_ac_c {
18public:
19 /* 8058E13C */ void setBaseMtx();
20 /* 8058E1C4 */ int CreateHeap();
21 /* 8058E244 */ cPhs__Step create();
22 /* 8058E5BC */ u8 isSwitch();
23 /* 8058E608 */ static int createHeapCallBack(fopAc_ac_c*);
24 /* 8058E628 */ static void* searchDemoTagAct(void*, void*);
25 /* 8058E678 */ void lightInit();
26 /* 8058E720 */ void setLight();
27 /* 8058E750 */ void cutLight();
28 /* 8058E780 */ void pointLightProc();
29 /* 8058E99C */ int Execute();
30 /* 8058EEC8 */ int Draw();
31 /* 8058EF6C */ int Delete();
32
33 int getOffType() { return fopAcM_GetParamBit(this, 0x18, 4); }
34 u8 getModelType() { return fopAcM_GetParamBit(this, 0x14, 4); }
35 u8 getLightAnm() { return fopAcM_GetParamBit(this, 0x10, 4); }
36 u8 getLightType() { return fopAcM_GetParamBit(this, 0xc, 4); }
37 u8 getSwType() { return fopAcM_GetParamBit(this, 8, 4); }
38 u8 getSw() { return fopAcM_GetParamBit(this, 0, 8); }
40private:
42 /* 0x570 */ J3DModel* mpModel;
43 /* 0x574 */ dCcD_Stts mStts;
44 /* 0x5B0 */ dCcD_Cyl mCyl;
45 /* 0x6EC */ cXyz mTorchPos;
46 /* 0x6F8 */ u8 mSw;
47 /* 0x6F9 */ bool mIsLit;
48 /* 0x6FA */ u8 mIsSwitch;
49 /* 0x6FB */ u8 mTimer;
50 /* 0x6FC */ u8 mSwType;
51 /* 0x6FD */ u8 mModelType;
52 /* 0x6FE */ u8 mLightAnm;
53 /* 0x700 */ cXyz mLightPos;
54 /* 0x70C */ u8 mLightType;
55 /* 0x70D */ u8 mAnmTimer;
56 /* 0x70E */ u8 mAnmStage;
57 /* 0x710 */ f32 mIntensity;
60 /* 0x738 */ u8 mTgHit;
62
63 static dCcD_SrcGObjInf const mCcDObjInfo;
64 static dCcD_SrcCyl mCcDCyl;
65};
66
67STATIC_ASSERT(sizeof(daLv2Candle_c) == 0x75C);
68
70public:
71 /* 8058E04C */ daLv2Candle_HIO_c();
72 /* 8058F050 */ ~daLv2Candle_HIO_c() {}
73
74 /* 0x04 */ u8 mTimer;
75 /* 0x08 */ f32 mPow;
76 /* 0x0C */ f32 mAnmMaxStep;
77 /* 0x10 */ f32 mAnmIntensity[6];
78 /* 0x28 */ u8 mAnmTimers[6];
79 /* 0x2E */ u8 mColor1R;
80 /* 0x2F */ u8 mColor1G;
81 /* 0x30 */ u8 mColor1B;
82 /* 0x31 */ u8 mColor2R;
83 /* 0x32 */ u8 mColor2G;
84 /* 0x33 */ u8 mColor2B;
85};
86
87#endif /* D_A_OBJ_LV2CANDLE_H */
cPhs__Step
Definition c_phase.h:8
Definition Z2SoundObject.h:34
Definition d_a_obj_lv2Candle.h:69
daLv2Candle_HIO_c()
Definition d_a_obj_lv2Candle.cpp:14
f32 mPow
Definition d_a_obj_lv2Candle.h:75
u8 mTimer
Definition d_a_obj_lv2Candle.h:74
u8 mColor2B
Definition d_a_obj_lv2Candle.h:84
u8 mAnmTimers[6]
Definition d_a_obj_lv2Candle.h:78
f32 mAnmIntensity[6]
Definition d_a_obj_lv2Candle.h:77
u8 mColor2R
Definition d_a_obj_lv2Candle.h:82
u8 mColor2G
Definition d_a_obj_lv2Candle.h:83
u8 mColor1G
Definition d_a_obj_lv2Candle.h:80
u8 mColor1B
Definition d_a_obj_lv2Candle.h:81
u8 mColor1R
Definition d_a_obj_lv2Candle.h:79
f32 mAnmMaxStep
Definition d_a_obj_lv2Candle.h:76
~daLv2Candle_HIO_c()
Definition d_a_obj_lv2Candle.h:72
Goron Mines Torch.
Definition d_a_obj_lv2Candle.h:17
f32 mIntensity
Definition d_a_obj_lv2Candle.h:57
static void * searchDemoTagAct(void *, void *)
Definition d_a_obj_lv2Candle.cpp:160
int Draw()
Definition d_a_obj_lv2Candle.cpp:368
void lightInit()
Definition d_a_obj_lv2Candle.cpp:169
dalv4CandleTag_c * field_0x734
Definition d_a_obj_lv2Candle.h:59
u8 mModelType
Definition d_a_obj_lv2Candle.h:51
u8 mLightType
Definition d_a_obj_lv2Candle.h:54
u8 mLightAnm
Definition d_a_obj_lv2Candle.h:52
cXyz mTorchPos
Definition d_a_obj_lv2Candle.h:45
u8 mAnmStage
Definition d_a_obj_lv2Candle.h:56
int getOffType()
Definition d_a_obj_lv2Candle.h:33
cPhs__Step create()
Definition d_a_obj_lv2Candle.cpp:92
void pointLightProc()
Definition d_a_obj_lv2Candle.cpp:201
bool mIsLit
Definition d_a_obj_lv2Candle.h:47
u8 mTimer
Definition d_a_obj_lv2Candle.h:49
void setLight()
Definition d_a_obj_lv2Candle.cpp:186
request_of_phase_process_class mPhase
Definition d_a_obj_lv2Candle.h:41
static dCcD_SrcCyl mCcDCyl
Definition d_a_obj_lv2Candle.h:53
void cutLight()
Definition d_a_obj_lv2Candle.cpp:193
static int createHeapCallBack(fopAc_ac_c *)
Definition d_a_obj_lv2Candle.cpp:155
J3DModel * mpModel
Definition d_a_obj_lv2Candle.h:42
u8 mSwType
Definition d_a_obj_lv2Candle.h:50
u8 getLightType()
Definition d_a_obj_lv2Candle.h:36
int CreateHeap()
Definition d_a_obj_lv2Candle.cpp:81
u8 mSw
Definition d_a_obj_lv2Candle.h:46
u8 mTgHit
Definition d_a_obj_lv2Candle.h:60
cXyz mLightPos
Definition d_a_obj_lv2Candle.h:53
int Execute()
Definition d_a_obj_lv2Candle.cpp:249
u8 getModelType()
Definition d_a_obj_lv2Candle.h:34
dCcD_Cyl mCyl
Definition d_a_obj_lv2Candle.h:44
dCcD_Stts mStts
Definition d_a_obj_lv2Candle.h:43
u8 getSwType()
Definition d_a_obj_lv2Candle.h:37
u8 getSw()
Definition d_a_obj_lv2Candle.h:38
u8 mAnmTimer
Definition d_a_obj_lv2Candle.h:55
u8 mIsSwitch
Definition d_a_obj_lv2Candle.h:48
int Delete()
Definition d_a_obj_lv2Candle.cpp:378
void setBaseMtx()
Definition d_a_obj_lv2Candle.cpp:73
u8 isSwitch()
Definition d_a_obj_lv2Candle.cpp:149
u8 getLightAnm()
Definition d_a_obj_lv2Candle.h:35
LIGHT_INFLUENCE mLight
Definition d_a_obj_lv2Candle.h:58
static dCcD_SrcGObjInf const mCcDObjInfo
Definition d_a_obj_lv2Candle.h:39
Z2SoundObjSimple mSound
Definition d_a_obj_lv2Candle.h:61
Arbiter's Grounds Torch Tag.
Definition d_a_obj_lv4CandleTag.h:22
Definition m_Do_hostIO.h:5
STATIC_ASSERT(sizeof(daLv2Candle_c)==0x75C)
u32 fopAcM_GetParamBit(void *ac, u8 shift, u8 bit)
Definition f_op_actor_mng.h:228
Definition d_a_ep.cpp:155
Definition d_a_ep.cpp:149
Definition d_a_hozelda.cpp:20
Definition d_a_npc_fguard.cpp:86
Definition d_a_npc_fguard.cpp:74
Definition d_cc_d.h:85
Definition d_a_npc_fguard.cpp:70
Definition d_a_ep.cpp:19
Definition d_a_hozelda.cpp:14
float f32
Definition types.h:22
unsigned char u8
Definition types.h:8