Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_e_ot.h
Go to the documentation of this file.
1#ifndef D_A_E_OT_H
2#define D_A_E_OT_H
3
5#include "d/actor/d_a_e_dt.h"
6#include "d/d_bg_s_acch.h"
7#include "d/d_cc_d.h"
8#include "d/d_cc_uty.h"
9#include "f_op/f_op_actor.h"
10
19class daE_OT_c : public fopEn_enemy_c {
20public:
21 int draw();
22 void setBck(int, u8, f32, f32);
23 void setActionMode(int, int);
24 void damage_check();
25 void checkWaterSurface();
26 void setWaterEffect();
27 void setEggBreakEffect();
29 void setEggStay();
30 void executeEgg();
31 void executeBorn();
32 void executeAttack();
33 void executePanic();
34 void executeDamage();
35 void action();
36 void mtx_set();
37 void cc_set();
38 int execute();
39 int _delete();
40 int CreateHeap();
42
43 int getChildNo() { return mChildNo; }
44 int getActionMode() { return mAction; }
45 void setShakeEgg() { mMode = 4; }
46 void setDeleteEgg() { mMode = 6; }
47 void setFallEgg() { mMode = 8; }
48
49 enum Action {
50 /* 0x0 */ ACT_EGG,
51 /* 0x1 */ ACT_BORN,
52 /* 0x2 */ ACT_ATTACK,
53 /* 0x3 */ ACT_PANIC,
54 /* 0x4 */ ACT_DAMAGE,
55 };
56
57private:
60 /* 0x5B8 */ J3DModel* mpEggModel;
61 /* 0x5BC */ mDoExt_btkAnm* mpEggAnm;
63 /* 0x664 */ cXyz mEggPos;
64 /* 0x670 */ daE_DT_c* mpToadActor;
65 /* 0x674 */ int mAction;
66 /* 0x678 */ int mMode;
67 /* 0x67C */ u32 mShadowKey;
68 /* 0x680 */ f32 mScale;
69 /* 0x684 */ f32 mAnmSpeed;
70 /* 0x688 */ f32 mWaterSurface;
71 /* 0x68C */ int mChildNo;
72 /* 0x690 */ s16 mTargetAngleY;
73 /* 0x692 */ u8 mDemoMode;
74 /* 0x693 */ bool mHatched;
75 /* 0x694 */ u8 mTimer1;
76 /* 0x695 */ u8 mTimer2;
78 /* 0x6D8 */ dBgS_ObjAcch mAcch;
79 /* 0x8B0 */ dCcD_Stts mCcStts;
80 /* 0x8EC */ dCcD_Sph mCcSph;
81 /* 0xA24 */ dCcD_Sph mAtSph;
82 /* 0xB5C */ dCcU_AtInfo mAtInfo;
83 /* 0xB80 */ u32 mWaterEffectKey[4];
84 /* 0xB90 */ u32 mRippleKey;
85 /* 0xB94 */ bool mHIOInit;
86};
87
88STATIC_ASSERT(sizeof(daE_OT_c) == 0xb98);
89
90#endif /* D_A_E_OT_H */
cPhs__Step
Definition c_phase.h:8
Definition J3DModel.h:43
Definition Z2Creature.h:37
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
Deku Toad.
Definition d_a_e_dt.h:20
Toado.
Definition d_a_e_ot.h:19
int draw()
Definition d_a_e_ot.cpp:109
s16 mTargetAngleY
Definition d_a_e_ot.h:72
void setEggBreakEffect()
Definition d_a_e_ot.cpp:220
bool mHIOInit
Definition d_a_e_ot.h:85
f32 mAnmSpeed
Definition d_a_e_ot.h:69
void executeEgg()
Definition d_a_e_ot.cpp:247
dBgS_ObjAcch mAcch
Definition d_a_e_ot.h:78
u32 mShadowKey
Definition d_a_e_ot.h:67
u8 mTimer1
Definition d_a_e_ot.h:75
request_of_phase_process_class mPhase
Definition d_a_e_ot.h:58
u32 mRippleKey
Definition d_a_e_ot.h:84
u8 mTimer2
Definition d_a_e_ot.h:76
void action()
Definition d_a_e_ot.cpp:579
void setFallEgg()
Definition d_a_e_ot.h:47
int execute()
Definition d_a_e_ot.cpp:669
dBgS_AcchCir mAcchCir
Definition d_a_e_ot.h:77
bool mHatched
Definition d_a_e_ot.h:74
cPhs__Step create()
Definition d_a_e_ot.cpp:747
void executeBorn()
Definition d_a_e_ot.cpp:330
void checkWaterSurface()
Definition d_a_e_ot.cpp:196
int mMode
Definition d_a_e_ot.h:66
int mChildNo
Definition d_a_e_ot.h:71
void executeAttack()
Definition d_a_e_ot.cpp:360
dCcD_Sph mCcSph
Definition d_a_e_ot.h:80
void mtx_set()
Definition d_a_e_ot.cpp:635
int _delete()
Definition d_a_e_ot.cpp:696
void setBck(int, u8, f32, f32)
Definition d_a_e_ot.cpp:141
dCcU_AtInfo mAtInfo
Definition d_a_e_ot.h:82
u8 mDemoMode
Definition d_a_e_ot.h:73
void setShakeEgg()
Definition d_a_e_ot.h:45
mDoExt_McaMorfSO * mpMorf
Definition d_a_e_ot.h:59
void setActionMode(int, int)
Definition d_a_e_ot.cpp:146
void setWaterEffect()
Definition d_a_e_ot.cpp:205
void executeDamage()
Definition d_a_e_ot.cpp:507
f32 mWaterSurface
Definition d_a_e_ot.h:70
J3DModel * mpEggModel
Definition d_a_e_ot.h:60
int CreateHeap()
Definition d_a_e_ot.cpp:714
void cc_set()
Definition d_a_e_ot.cpp:644
int getActionMode()
Definition d_a_e_ot.h:44
dCcD_Stts mCcStts
Definition d_a_e_ot.h:79
mDoExt_btkAnm * mpEggAnm
Definition d_a_e_ot.h:61
Action
Definition d_a_e_ot.h:49
@ ACT_EGG
Definition d_a_e_ot.h:50
@ ACT_PANIC
Definition d_a_e_ot.h:53
@ ACT_ATTACK
Definition d_a_e_ot.h:52
@ ACT_DAMAGE
Definition d_a_e_ot.h:54
@ ACT_BORN
Definition d_a_e_ot.h:51
int mAction
Definition d_a_e_ot.h:65
void setDeathLightEffect()
Definition d_a_e_ot.cpp:227
daE_DT_c * mpToadActor
Definition d_a_e_ot.h:64
void executePanic()
Definition d_a_e_ot.cpp:423
f32 mScale
Definition d_a_e_ot.h:68
Z2CreatureEnemy mSound
Definition d_a_e_ot.h:62
int getChildNo()
Definition d_a_e_ot.h:43
void setDeleteEgg()
Definition d_a_e_ot.h:46
cXyz mEggPos
Definition d_a_e_ot.h:63
void damage_check()
Definition d_a_e_ot.cpp:153
void setEggStay()
Definition d_a_e_ot.cpp:235
dCcD_Sph mAtSph
Definition d_a_e_ot.h:81
u32 mWaterEffectKey[4]
Definition d_a_e_ot.h:83
Definition f_op_actor.h:285
Definition m_Do_ext.h:331
Definition m_Do_ext.h:65
STATIC_ASSERT(sizeof(daE_OT_c)==0xb98)
unsigned long u32
Definition types.h:12
signed short int s16
Definition types.h:9
float f32
Definition types.h:25
unsigned char u8
Definition types.h:8
Definition c_xyz.h:7
Definition d_cc_uty.h:20
Definition c_phase.h:17