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
18 void Set(daGlwSph_c* i_sph) {
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; }
33private:
34 /* 0x0 */ daGlwSph_c* mpSph;
35 /* 0x4 */ s8 mIsSet;
36};
37
39public:
41 field_0x0 = 0;
42 }
43
45 reset();
46 }
47
48 void _clrLstBuf();
49 int entry(daGlwSph_c*);
50 void remove(daGlwSph_c*);
51 int _setting_main();
53 void SphSeProc();
54 static void clrSphSe();
55 static u16 getSphSe();
56 static void incSphSe();
57
58 void setting() {
60 }
61
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 static _GlSph_Mng_c& getSphMng();
104 void setBaseMtx();
105 static int createHeapCallBack(fopAc_ac_c*);
106 int CreateHeap();
107 int create();
108 int execute();
109 void actionMain();
110 void effectSet();
111 void getSE();
112 void getVibe();
113 void actionWaitInit();
114 void actionWait();
115 void actionGetInit();
116 void actionGet();
117 void actionMoveInit();
118 void actionMove();
119 int draw();
120 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:
170 virtual ~daGlwSph_HIO_c() {}
171
173
174 /* 0x4 */ f32 speed;
175 /* 0x8 */ f32 speed2;
176};
177
178#endif /* D_A_OBJ_GLOWSPHERE_H */
Definition J3DModel.h:43
Definition JORMContext.h:120
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:384
BOOL _chkAllGet_main()
Definition d_a_obj_glowSphere.cpp:401
_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:371
void reset()
Definition d_a_obj_glowSphere.h:66
static void incSphSe()
Definition d_a_obj_glowSphere.cpp:454
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:424
int entry(daGlwSph_c *)
Definition d_a_obj_glowSphere.cpp:356
int field_0x0
Definition d_a_obj_glowSphere.h:74
static void clrSphSe()
Definition d_a_obj_glowSphere.cpp:446
void _clrLstBuf()
Definition d_a_obj_glowSphere.cpp:347
BOOL isAllGet()
Definition d_a_obj_glowSphere.h:62
static u16 getSphSe()
Definition d_a_obj_glowSphere.cpp:450
void OnCoSetBit()
Definition c_cc_d.h:356
Definition d_bg_s_acch.h:15
Definition d_bg_s_acch.h:247
Definition d_cc_d.h:473
Definition d_cc_d.h:269
Definition d_a_obj_glowSphere.h:167
f32 speed
Definition d_a_obj_glowSphere.h:174
f32 speed2
Definition d_a_obj_glowSphere.h:175
void genMessage(JORMContext *)
virtual ~daGlwSph_HIO_c()
Definition d_a_obj_glowSphere.h:170
daGlwSph_HIO_c()
Definition d_a_obj_glowSphere.cpp:13
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:325
static _GlSph_Mng_c & getSphMng()
Definition d_a_obj_glowSphere.cpp:50
void getVibe()
Definition d_a_obj_glowSphere.cpp:235
u8 field_0x951
Definition d_a_obj_glowSphere.h:152
int create()
Definition d_a_obj_glowSphere.cpp:83
void actionGetInit()
Definition d_a_obj_glowSphere.cpp:245
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:25
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:32
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:255
void getSE()
Definition d_a_obj_glowSphere.cpp:219
int execute()
Definition d_a_obj_glowSphere.cpp:138
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:289
s16 field_0x980
Definition d_a_obj_glowSphere.h:161
void actionWaitInit()
Definition d_a_obj_glowSphere.cpp:239
void effectSet()
Definition d_a_obj_glowSphere.cpp:202
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:54
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:64
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:279
static int createHeapCallBack(fopAc_ac_c *)
Definition d_a_obj_glowSphere.cpp:60
void actionWait()
Definition d_a_obj_glowSphere.cpp:243
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:159
void saveGetFlag()
Definition d_a_obj_glowSphere.h:128
void actionMoveInit()
Definition d_a_obj_glowSphere.cpp:273
Definition f_op_actor.h:230
actor_place home
Definition f_op_actor.h:249
actor_place current
Definition f_op_actor.h:251
Definition m_Do_ext.h:94
Definition m_Do_ext.h:65
STATIC_ASSERT(sizeof(daGlwSph_c)==0x98C)
int BOOL
Definition types.h:33
signed char s8
Definition types.h:7
unsigned long u32
Definition types.h:12
signed short int s16
Definition types.h:9
float f32
Definition types.h:25
unsigned short int u16
Definition types.h:10
unsigned char u8
Definition types.h:8
u32 fopAcM_GetParamBit(void *ac, u8 shift, u8 bit)
Definition f_op_actor_mng.h:196
Definition d_kankyo.h:17
cXyz pos
Definition f_op_actor.h:205
Definition c_xyz.h:7
Definition d_cc_d.h:87
Definition d_cc_d.h:94
Definition f_op_actor_mng.h:83
Definition c_phase.h:17