Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_nbomb.h
Go to the documentation of this file.
1#ifndef D_A_NBOMB_H
2#define D_A_NBOMB_H
3
4#include "d/d_bomb.h"
5#include "d/d_bg_s_acch.h"
6#include "d/d_cc_d.h"
8
17class daNbomb_c : public dBomb_c {
18public:
37
46
47 /* 804C6DCC */ void coHitCallback(fopAc_ac_c*);
48 /* 804C6E34 */ void tgHitCallback(dCcD_GObjInf*);
49 /* 804C6FD8 */ int searchEnemy(fopAc_ac_c*);
50 /* 804C7114 */ int createHeap();
51 /* 804C7324 */ int create();
52 /* 804C7B44 */ daNbomb_c();
53 /* 804C7EB4 */ ~daNbomb_c();
54 /* 804C8294 */ bool checkTimerStop();
55 /* 804C82D8 */ BOOL checkExplode();
56 /* 804C8430 */ void setRoomInfo();
57 /* 804C84D8 */ void setSmokePos();
58 /* 804C8588 */ void setEffect();
59 /* 804C87F0 */ void setHookshotOffset();
60 /* 804C88CC */ void setFreeze();
61 /* 804C88F0 */ BOOL checkWaterIn();
62 /* 804C8928 */ BOOL insectLineCheck();
63 /* 804C8A88 */ void setHitPolygon(int);
64 /* 804C8CF8 */ BOOL procExplodeInit();
65 /* 804C9118 */ BOOL procExplode();
66 /* 804C93E0 */ BOOL procCarryInit();
67 /* 804C955C */ BOOL procCarry();
68 /* 804C9930 */ BOOL procWaitInit();
69 /* 804C9984 */ BOOL procWait();
70 /* 804CA268 */ BOOL procFlowerWaitInit();
71 /* 804CA2EC */ BOOL procFlowerWait();
73 /* 804CA4E0 */ BOOL procBoomerangMove();
74 /* 804CA688 */ BOOL procInsectMoveInit();
75 /* 804CA780 */ BOOL procInsectMove();
76 /* 804CAEE8 */ int execute();
77 /* 804CBC60 */ int draw();
78
79 virtual BOOL checkExplodeNow() { return field_0xb51 != 0; }
80 virtual void deleteBombAndEffect() {
81 fopAcM_delete(this);
83 }
85
89
92
93 s16 getExTime() { return mExTime; }
94
95 static const char* m_arcNameList[6];
96
98 /* 0x574 */ J3DModel* mpModel;
99 /* 0x578 */ dBgS_BombAcch mAcch;
101 /* 0x790 */ dCcD_Stts mCcStts;
102 /* 0x7CC */ dCcD_Sph mCcSph;
103 /* 0x904 */ dCcD_Sph mSph2;
104 /* 0xA3C */ mDoExt_bckAnm* mpBck;
105 /* 0xA40 */ Mtx field_0xa40;
106 /* 0xA70 */ Mtx field_0xa70;
111 /* 0xB4C */ u32 mStateFlg0;
112 /* 0xB50 */ u8 mExplodeMode;
113 /* 0xB51 */ u8 field_0xb51;
115 /* 0xB53 */ s8 mSoundReverb;
116 /* 0xB54 */ u8 mType;
117 /* 0xB55 */ u8 field_0xB55[0xB58 - 0xB55];
118 /* 0xB58 */ s16 mExTime;
119 /* 0xB5A */ s16 field_0xb5a;
120 /* 0xB5C */ s16 field_0xb5c;
121 /* 0xB5E */ s16 mFreezeTimer;
125 /* 0xBB0 */ f32 field_0xbb0;
126 /* 0xBB4 */ u32 mPolySound;
127 /* 0xBB8 */ u32 mEffectEmitterIDs[5];
130 /* 0xBE4 */ cXyz field_0xbe4;
131 /* 0xBF0 */ cXyz field_0xbf0;
132 /* 0xBFC */ cXyz field_0xbfc;
133 /* 0xC08 */ cXyz field_0xc08;
134 /* 0xC14 */ cXyz field_0xc14;
135 /* 0xC20 */ cXyz field_0xc20;
136 /* 0xC2C */ cXyz field_0xc2c;
137 /* 0xC38 */ BOOL (daNbomb_c::*mProcFunc)();
138};
139
140#endif /* D_A_NBOMB_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition Z2SoundObject.h:34
Definition d_bg_s_acch.h:259
Definition d_bg_s_lin_chk.h:55
Definition d_bomb.h:6
Definition d_cc_d.h:432
Bomb.
Definition d_a_nbomb.h:17
bool checkTimerStop()
Definition d_a_nbomb.cpp:445
dCcD_Sph mSph2
Definition d_a_nbomb.h:103
daNbomb_c()
Definition d_a_nbomb.cpp:388
f32 field_0xbb0
Definition d_a_nbomb.h:125
BOOL procFlowerWait()
Definition d_a_nbomb.cpp:1133
BOOL procCarry()
Definition d_a_nbomb.cpp:843
f32 mExplosionStrength
Definition d_a_nbomb.h:124
cXyz field_0xbe4
Definition d_a_nbomb.h:130
u8 field_0xB55[0xB58 - 0xB55]
Definition d_a_nbomb.h:117
s16 getExTime()
Definition d_a_nbomb.h:93
daPy_boomerangMove_c mBoomerangMove
Definition d_a_nbomb.h:110
Z2SoundObjSimple mSound
Definition d_a_nbomb.h:109
s16 mExTime
Definition d_a_nbomb.h:118
void setEffect()
BOOL procExplodeInit()
Definition d_a_nbomb.cpp:661
u32 mEffectEmitterIDs[5]
Definition d_a_nbomb.h:127
dCcD_Sph mCcSph
Definition d_a_nbomb.h:102
cXyz mEffectLastPosition
Definition d_a_nbomb.h:129
virtual BOOL checkExplodeNow()
Definition d_a_nbomb.h:79
Mtx field_0xa40
Definition d_a_nbomb.h:105
int create()
Definition d_a_nbomb.cpp:183
dBgS_BombAcch mAcch
Definition d_a_nbomb.h:99
s16 field_0xb5c
Definition d_a_nbomb.h:120
void setHitPolygon(int)
Definition d_a_nbomb.cpp:616
dCcD_Stts mCcStts
Definition d_a_nbomb.h:101
void setRoomInfo()
Definition d_a_nbomb.cpp:484
u32 checkPlayerMake() const
Definition d_a_nbomb.h:91
BOOL procWait()
Definition d_a_nbomb.cpp:929
BOOL procInsectMove()
Definition d_a_nbomb.cpp:1253
~daNbomb_c()
Definition d_a_nbomb.cpp:398
cXyz field_0xc2c
Definition d_a_nbomb.h:136
void onStateFlg0(daNbomb_FLG0 i_flag)
Definition d_a_nbomb.h:86
int draw()
Definition d_a_nbomb.cpp:1635
daNbomb_FLG0
Definition d_a_nbomb.h:19
@ FLG0_UNK_2000
Definition d_a_nbomb.h:31
@ FLG0_DELETE_BOMB
Definition d_a_nbomb.h:30
@ FLG0_INSECT_BOMB
Definition d_a_nbomb.h:28
@ FLG0_UNK_40
Definition d_a_nbomb.h:24
@ FLG0_UNK_20000
Definition d_a_nbomb.h:35
@ FLG0_FROZEN
Definition d_a_nbomb.h:27
@ FLG0_NO_HIT_PLAYER
Definition d_a_nbomb.h:25
@ FLG0_UNK_800
Definition d_a_nbomb.h:29
@ FLG0_UNDERWATER
Definition d_a_nbomb.h:23
@ FLG0_SET_HOOKSHOT_OFFSET
Definition d_a_nbomb.h:32
@ FLG0_CARGO_CARRY
Definition d_a_nbomb.h:26
@ FLG0_BOMB_HIT
Definition d_a_nbomb.h:21
@ FLG0_WATER_BOMB
Definition d_a_nbomb.h:22
@ FLG0_PLAYER_MAKE
Definition d_a_nbomb.h:20
@ FLG0_UNK_8000
Definition d_a_nbomb.h:33
@ FLG0_UNK_10000
Definition d_a_nbomb.h:34
void setFreeze()
Definition d_a_nbomb.cpp:583
BOOL procFlowerWaitInit()
Definition d_a_nbomb.cpp:1120
Mtx field_0xa70
Definition d_a_nbomb.h:106
dBgS_AcchCir mAcchCir
Definition d_a_nbomb.h:100
int searchEnemy(fopAc_ac_c *)
Definition d_a_nbomb.cpp:90
WIND_INFLUENCE mWindInfluence
Definition d_a_nbomb.h:123
u32 mPolySound
Definition d_a_nbomb.h:126
void tgHitCallback(dCcD_GObjInf *)
Definition d_a_nbomb.cpp:51
u8 field_0xb51
Definition d_a_nbomb.h:113
BOOL checkWaterIn()
Definition d_a_nbomb.cpp:591
J3DModel * mpModel
Definition d_a_nbomb.h:98
BOOL(daNbomb_c::* mProcFunc)()
Definition d_a_nbomb.h:137
cXyz mEffectPosition
Definition d_a_nbomb.h:128
int execute()
Definition d_a_nbomb.cpp:1387
u8 mType
Definition d_a_nbomb.h:116
BOOL procBoomerangMoveInit(dCcD_GObjInf *)
Definition d_a_nbomb.cpp:1158
u32 mStateFlg0
Definition d_a_nbomb.h:111
u32 checkStateFlg0(daNbomb_FLG0 i_flag) const
Definition d_a_nbomb.h:88
cBgS_PolyInfo mInsectHitPolyInfo
Definition d_a_nbomb.h:108
s16 mFreezeTimer
Definition d_a_nbomb.h:121
daNbomb_TYPE
Definition d_a_nbomb.h:38
@ TYPE_INSECT_PLAYER
Definition d_a_nbomb.h:41
@ TYPE_INSECT_ENEMY
Definition d_a_nbomb.h:43
@ TYPE_WATER_PLAYER
Definition d_a_nbomb.h:40
@ TYPE_NORMAL_PLAYER
Definition d_a_nbomb.h:39
@ TYPE_WATER_ENEMY
Definition d_a_nbomb.h:44
@ TYPE_FLOWER
Definition d_a_nbomb.h:42
BOOL procWaitInit()
Definition d_a_nbomb.cpp:917
BOOL checkExplode()
Definition d_a_nbomb.cpp:453
mDoExt_bckAnm * mpBck
Definition d_a_nbomb.h:104
s8 mSoundReverb
Definition d_a_nbomb.h:115
u8 mNoHitPlayerTimer
Definition d_a_nbomb.h:114
cXyz field_0xbfc
Definition d_a_nbomb.h:132
request_of_phase_process_class mPhase
Definition d_a_nbomb.h:97
BOOL procExplode()
Definition d_a_nbomb.cpp:763
void offStateFlg0(daNbomb_FLG0 i_flag)
Definition d_a_nbomb.h:87
int createHeap()
Definition d_a_nbomb.cpp:138
cXyz field_0xbf0
Definition d_a_nbomb.h:131
BOOL insectLineCheck()
Definition d_a_nbomb.cpp:596
void coHitCallback(fopAc_ac_c *)
Definition d_a_nbomb.cpp:17
void setSmokePos()
Definition d_a_nbomb.cpp:501
dBgS_BombLinChk mLineChk
Definition d_a_nbomb.h:107
cXyz field_0xc20
Definition d_a_nbomb.h:135
virtual void deleteBombAndEffect()
Definition d_a_nbomb.h:80
virtual void setCargoBombExplode()
Definition d_a_nbomb.h:84
s16 field_0xb5a
Definition d_a_nbomb.h:119
void setHookshotOffset()
Definition d_a_nbomb.cpp:569
u32 checkWaterBomb() const
Definition d_a_nbomb.h:90
BOOL procInsectMoveInit()
Definition d_a_nbomb.cpp:1234
cXyz field_0xc14
Definition d_a_nbomb.h:134
BOOL procCarryInit()
Definition d_a_nbomb.cpp:815
LIGHT_INFLUENCE mLightInfluence
Definition d_a_nbomb.h:122
cXyz field_0xc08
Definition d_a_nbomb.h:133
BOOL procBoomerangMove()
Definition d_a_nbomb.cpp:1185
static const char * m_arcNameList[6]
Definition d_a_nbomb.h:132
u8 mExplodeMode
Definition d_a_nbomb.h:112
Definition d_a_player.h:32
void fopAcM_delete(fopAc_ac_c *i_actor)
Definition f_op_actor_mng.cpp:139
f32 Mtx[3][4]
Definition mtx.h:15
Definition d_a_ep.cpp:155
Definition d_a_ep.cpp:149
Definition d_kankyo.h:66
Definition d_a_ep.cpp:134
Definition d_a_hozelda.cpp:20
Definition d_a_npc_fguard.cpp:98
Definition d_a_npc_fguard.cpp:81
Definition d_a_npc_fguard.cpp:70
Definition d_a_ep.cpp:19
Definition d_a_hozelda.cpp:56
Definition d_a_hozelda.cpp:14
int BOOL
Definition types.h:27
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 char u8
Definition types.h:8