Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_obj_glowSphere.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_GLOWSPHERE_H
2#define D_A_OBJ_GLOWSPHERE_H
3
5#include "d/d_bg_s_acch.h"
6#include "d/d_cc_d.h"
7
8class daGlwSph_c;
10public:
12 mpSph = NULL;
13 mIsSet = false;
14 }
15
17
19 if (!mIsSet && i_sph != NULL) {
20 mpSph = i_sph;
21 mIsSet = true;
22 }
23 }
24
25 void Remove() {
26 mpSph = NULL;
27 mIsSet = false;
28 }
29
30 bool isSet() { return mIsSet; }
31 daGlwSph_c* getpSph() { return mpSph; }
32
33private:
34 /* 0x0 */ daGlwSph_c* mpSph;
35 /* 0x4 */ s8 mIsSet;
36};
37
39public:
41 field_0x0 = 0;
42 }
43
47
48 /* 80BFA4B8 */ void _clrLstBuf();
49 /* 80BFA4DC */ int entry(daGlwSph_c*);
50 /* 80BFA528 */ void remove(daGlwSph_c*);
51 /* 80BFA55C */ int _setting_main();
52 /* 80BFA5C4 */ bool _chkAllGet_main();
53 /* 80BFA60C */ void SphSeProc();
54 /* 80BFA6D8 */ static void clrSphSe();
55 /* 80BFA6E8 */ static u16 getSphSe();
56 /* 80BFA6F8 */ static void incSphSe();
57
58 void setting() {
60 }
61
62 bool isAllGet() {
63 return _chkAllGet_main();
64 }
65
66 void reset() {
67 field_0x0 = 0;
68 _clrLstBuf();
69 }
70
71 static u16 mSphSe;
72 static s16 mSeClrTmr;
73
74 /* 0x0 */ int field_0x0;
75 /* 0x4 */ _GlSph_LstInfo_c mListBuf[120];
76};
77
86class daGlwSph_c : public fopAc_ac_c {
87public:
96
102
103 /* 80BF9430 */ _GlSph_Mng_c& getSphMng();
104 /* 80BF943C */ void setBaseMtx();
105 /* 80BF94AC */ static int createHeapCallBack(fopAc_ac_c*);
106 /* 80BF94CC */ int CreateHeap();
107 /* 80BF95D4 */ int create();
108 /* 80BF9B1C */ int execute();
109 /* 80BF9BC0 */ void actionMain();
110 /* 80BF9DF0 */ void effectSet();
111 /* 80BF9F30 */ void getSE();
112 /* 80BFA010 */ void getVibe();
113 /* 80BFA064 */ void actionWaitInit();
114 /* 80BFA070 */ void actionWait();
115 /* 80BFA074 */ void actionGetInit();
116 /* 80BFA130 */ void actionGet();
117 /* 80BFA1E0 */ void actionMoveInit();
118 /* 80BFA204 */ void actionMove();
119 /* 80BFA2A4 */ int draw();
120 /* 80BFA3EC */ int _delete();
121
122 int getSw() { return fopAcM_GetParamBit(this, 0, 8); }
123 u8 getArg0() { return fopAcM_GetParamBit(this, 8, 8); }
124 u8 getColor() { return fopAcM_GetParamBit(this, 0x10, 8); }
125
126 void onGetFlag() { mGetFlag = true; }
127 void offGetFlag() { mGetFlag = false; }
129 bool is_getted() { return mGetFlag == true; }
130
131 void reset() {
134 offGetFlag();
135 saveGetFlag();
136 }
137
138 static const dCcD_SrcGObjInf mCcDObjInfo;
139 static dCcD_SrcSph mCcDSph;
141
143 /* 0x570 */ J3DModel* mpModel;
144 /* 0x574 */ mDoExt_btkAnm mBtk;
145 /* 0x58C */ mDoExt_brkAnm mBrk;
146 /* 0x5A4 */ dBgS_ObjAcch mAcch;
151 /* 0x950 */ u8 mGetFlag;
152 /* 0x951 */ u8 field_0x951;
153 /* 0x952 */ u8 mAction;
154 /* 0x953 */ u8 mIsNoMoveHome;
155 /* 0x954 */ u8 mColor;
156 /* 0x955 */ u8 mMoveTimer;
157 /* 0x958 */ f32 mMoveSpeed;
158 /* 0x95C */ cXyz mMoveVec;
159 /* 0x968 */ cXyz field_0x968;
160 /* 0x974 */ cXyz field_0x974;
161 /* 0x980 */ s16 field_0x980;
162 /* 0x984 */ u32 mEmitterIDs[2];
163};
164
165STATIC_ASSERT(sizeof(daGlwSph_c) == 0x98C);
166
168public:
169 /* 80BF934C */ daGlwSph_HIO_c();
170 /* 80BFA76C */ virtual ~daGlwSph_HIO_c() {}
171
172 /* 0x4 */ f32 speed;
173 /* 0x8 */ f32 speed2;
174};
175
176#endif /* D_A_OBJ_GLOWSPHERE_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:79
Definition d_a_obj_glowSphere.h:9
s8 mIsSet
Definition d_a_obj_glowSphere.h:35
daGlwSph_c * getpSph()
Definition d_a_obj_glowSphere.h:31
void Set(daGlwSph_c *i_sph)
Definition d_a_obj_glowSphere.h:18
~_GlSph_LstInfo_c()
Definition d_a_obj_glowSphere.h:16
void Remove()
Definition d_a_obj_glowSphere.h:25
_GlSph_LstInfo_c()
Definition d_a_obj_glowSphere.h:11
daGlwSph_c * mpSph
Definition d_a_obj_glowSphere.h:34
bool isSet()
Definition d_a_obj_glowSphere.h:30
Definition d_a_obj_glowSphere.h:38
static u16 mSphSe
Definition d_a_obj_glowSphere.h:71
~_GlSph_Mng_c()
Definition d_a_obj_glowSphere.h:44
int _setting_main()
Definition d_a_obj_glowSphere.cpp:437
_GlSph_Mng_c()
Definition d_a_obj_glowSphere.h:40
static s16 mSeClrTmr
Definition d_a_obj_glowSphere.h:72
void remove(daGlwSph_c *)
Definition d_a_obj_glowSphere.cpp:423
void reset()
Definition d_a_obj_glowSphere.h:66
static void incSphSe()
Definition d_a_obj_glowSphere.cpp:513
void setting()
Definition d_a_obj_glowSphere.h:58
_GlSph_LstInfo_c mListBuf[120]
Definition d_a_obj_glowSphere.h:75
void SphSeProc()
Definition d_a_obj_glowSphere.cpp:480
int entry(daGlwSph_c *)
Definition d_a_obj_glowSphere.cpp:407
int field_0x0
Definition d_a_obj_glowSphere.h:74
static void clrSphSe()
Definition d_a_obj_glowSphere.cpp:503
void _clrLstBuf()
Definition d_a_obj_glowSphere.cpp:396
bool isAllGet()
Definition d_a_obj_glowSphere.h:62
static u16 getSphSe()
Definition d_a_obj_glowSphere.cpp:508
bool _chkAllGet_main()
Definition d_a_obj_glowSphere.cpp:456
void OnCoSetBit()
Definition c_cc_d.h:516
Definition d_cc_d.h:432
Definition d_a_obj_glowSphere.h:167
f32 speed
Definition d_a_obj_glowSphere.h:172
f32 speed2
Definition d_a_obj_glowSphere.h:173
virtual ~daGlwSph_HIO_c()
Definition d_a_obj_glowSphere.h:170
daGlwSph_HIO_c()
Definition d_a_obj_glowSphere.cpp:14
STAR Game Glow Sphere.
Definition d_a_obj_glowSphere.h:86
mDoExt_btkAnm mBtk
Definition d_a_obj_glowSphere.h:144
dBgS_ObjAcch mAcch
Definition d_a_obj_glowSphere.h:146
int _delete()
Definition d_a_obj_glowSphere.cpp:369
_GlSph_Mng_c & getSphMng()
Definition d_a_obj_glowSphere.cpp:76
void getVibe()
Definition d_a_obj_glowSphere.cpp:271
u8 field_0x951
Definition d_a_obj_glowSphere.h:152
int create()
Definition d_a_obj_glowSphere.cpp:114
void actionGetInit()
Definition d_a_obj_glowSphere.cpp:284
dBgS_AcchCir mAcchCir
Definition d_a_obj_glowSphere.h:147
LIGHT_INFLUENCE mLight
Definition d_a_obj_glowSphere.h:150
u8 mIsNoMoveHome
Definition d_a_obj_glowSphere.h:154
static const dCcD_SrcGObjInf mCcDObjInfo
Definition d_a_obj_glowSphere.h:46
static _GlSph_Mng_c mSphMng
Definition d_a_obj_glowSphere.h:140
u8 getArg0()
Definition d_a_obj_glowSphere.h:123
u8 getColor()
Definition d_a_obj_glowSphere.h:124
cXyz field_0x974
Definition d_a_obj_glowSphere.h:160
static dCcD_SrcSph mCcDSph
Definition d_a_obj_glowSphere.h:54
u8 mMoveTimer
Definition d_a_obj_glowSphere.h:156
dCcD_Sph mSphCollider
Definition d_a_obj_glowSphere.h:149
void actionGet()
Definition d_a_obj_glowSphere.cpp:295
void getSE()
Definition d_a_obj_glowSphere.cpp:254
int execute()
Definition d_a_obj_glowSphere.cpp:170
bool is_getted()
Definition d_a_obj_glowSphere.h:129
void offGetFlag()
Definition d_a_obj_glowSphere.h:127
int draw()
Definition d_a_obj_glowSphere.cpp:332
s16 field_0x980
Definition d_a_obj_glowSphere.h:161
void actionWaitInit()
Definition d_a_obj_glowSphere.cpp:276
void effectSet()
Definition d_a_obj_glowSphere.cpp:236
ACTION_e
Definition d_a_obj_glowSphere.h:97
@ ACTION_WAIT_e
Definition d_a_obj_glowSphere.h:98
@ ACTION_MOVE_e
Definition d_a_obj_glowSphere.h:100
@ ACTION_GET_e
Definition d_a_obj_glowSphere.h:99
void setBaseMtx()
Definition d_a_obj_glowSphere.cpp:81
request_of_phase_process_class mPhase
Definition d_a_obj_glowSphere.h:142
cXyz mMoveVec
Definition d_a_obj_glowSphere.h:158
int CreateHeap()
Definition d_a_obj_glowSphere.cpp:94
void reset()
Definition d_a_obj_glowSphere.h:131
u8 mAction
Definition d_a_obj_glowSphere.h:153
int getSw()
Definition d_a_obj_glowSphere.h:122
f32 mMoveSpeed
Definition d_a_obj_glowSphere.h:157
u8 mColor
Definition d_a_obj_glowSphere.h:155
J3DModel * mpModel
Definition d_a_obj_glowSphere.h:143
void actionMove()
Definition d_a_obj_glowSphere.cpp:321
static int createHeapCallBack(fopAc_ac_c *)
Definition d_a_obj_glowSphere.cpp:89
void actionWait()
Definition d_a_obj_glowSphere.cpp:281
COLOR_e
Definition d_a_obj_glowSphere.h:88
@ COLOR_YELLOW_e
Definition d_a_obj_glowSphere.h:91
@ COLOR_RED_e
Definition d_a_obj_glowSphere.h:90
@ COLOR_DEFAULT_e
Definition d_a_obj_glowSphere.h:94
@ COLOR_GRAY_e
Definition d_a_obj_glowSphere.h:89
@ COLOR_BLUE_e
Definition d_a_obj_glowSphere.h:92
dCcD_Stts mColliderStts
Definition d_a_obj_glowSphere.h:148
mDoExt_brkAnm mBrk
Definition d_a_obj_glowSphere.h:145
cXyz field_0x968
Definition d_a_obj_glowSphere.h:159
u8 mGetFlag
Definition d_a_obj_glowSphere.h:151
void onGetFlag()
Definition d_a_obj_glowSphere.h:126
u32 mEmitterIDs[2]
Definition d_a_obj_glowSphere.h:162
void actionMain()
Definition d_a_obj_glowSphere.cpp:192
void saveGetFlag()
Definition d_a_obj_glowSphere.h:128
void actionMoveInit()
Definition d_a_obj_glowSphere.cpp:314
STATIC_ASSERT(sizeof(daGlwSph_c)==0x98C)
u32 fopAcM_GetParamBit(void *ac, u8 shift, u8 bit)
Definition f_op_actor_mng.h:170
Definition d_a_ep.cpp:155
Definition d_a_ep.cpp:149
cXyz pos
Definition f_op_actor.h:170
Definition d_a_hozelda.cpp:20
Definition d_a_npc_fguard.cpp:98
Definition d_a_npc_fguard.cpp:94
Definition d_cc_d.h:85
Definition d_cc_d.h:92
Definition d_a_npc_fguard.cpp:70
Definition f_op_actor_mng.h:73
Definition d_a_ep.cpp:19
actor_place home
Definition f_op_actor.h:213
actor_place current
Definition f_op_actor.h:215
Definition d_a_obj_sekizoa.cpp:56
Definition d_a_hozelda.cpp:47
Definition d_a_hozelda.cpp:14
signed char s8
Definition types.h:4
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8