Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
daNbomb_c Class Reference

Bomb. More...

#include <d_a_nbomb.h>

+ Inheritance diagram for daNbomb_c:
+ Collaboration diagram for daNbomb_c:

Public Types

enum  daNbomb_FLG0 {
  FLG0_PLAYER_MAKE = 0x1 , FLG0_BOMB_HIT = 0x4 , FLG0_WATER_BOMB = 0x10 , FLG0_UNDERWATER = 0x20 ,
  FLG0_UNK_40 = 0x40 , FLG0_NO_HIT_PLAYER = 0x80 , FLG0_CARGO_CARRY = 0x100 , FLG0_FROZEN = 0x200 ,
  FLG0_INSECT_BOMB = 0x400 , FLG0_UNK_800 = 0x800 , FLG0_DELETE_BOMB = 0x1000 , FLG0_UNK_2000 = 0x2000 ,
  FLG0_SET_HOOKSHOT_OFFSET = 0x4000 , FLG0_UNK_8000 = 0x8000 , FLG0_UNK_10000 = 0x10000 , FLG0_UNK_20000 = 0x20000
}
 
enum  daNbomb_TYPE {
  TYPE_NORMAL_PLAYER , TYPE_WATER_PLAYER , TYPE_INSECT_PLAYER , TYPE_FLOWER ,
  TYPE_INSECT_ENEMY , TYPE_WATER_ENEMY
}
 
- Public Types inherited from dBomb_c
enum  dBomb_PRM {
  PRM_NORMAL_BOMB_EXPLODE , PRM_BOMB_CARRY , PRM_BOMB_HOOKSHOT , PRM_BOMB_WAIT ,
  PRM_FLOWER_BOMB , PRM_BOMB_BOOMERANG_MOVE , PRM_ENEMY_BOMB_BOOMERANG_MOVE , PRM_INSECT_BOMB_MOVE ,
  PRM_NORMAL_BOMB_PLAYER , PRM_WATER_BOMB_PLAYER , PRM_INSECT_BOMB_PLAYER , PRM_ENEMY_BOMB ,
  PRM_ENEMY_BOMB_BOOMERANG , PRM_ENEMY_BOMB_HOOKSHOT , PRM_ENEMY_WATER_BOMB , PRM_UNK_15 ,
  PRM_ENEMY_WATER_BOMB_HOOKSHOT , PRM_BOMB_CARGO_CARRY , PRM_WATER_BOMB_EXPLODE
}
 

Public Member Functions

void coHitCallback (fopAc_ac_c *)
 
void tgHitCallback (dCcD_GObjInf *)
 
int searchEnemy (fopAc_ac_c *)
 
int createHeap ()
 
int create ()
 
 daNbomb_c ()
 
 ~daNbomb_c ()
 
bool checkTimerStop ()
 
BOOL checkExplode ()
 
void setRoomInfo ()
 
void setSmokePos ()
 
void setEffect ()
 
void setHookshotOffset ()
 
void setFreeze ()
 
BOOL checkWaterIn ()
 
BOOL insectLineCheck ()
 
void setHitPolygon (int)
 
BOOL procExplodeInit ()
 
BOOL procExplode ()
 
BOOL procCarryInit ()
 
BOOL procCarry ()
 
BOOL procWaitInit ()
 
BOOL procWait ()
 
BOOL procFlowerWaitInit ()
 
BOOL procFlowerWait ()
 
BOOL procBoomerangMoveInit (dCcD_GObjInf *)
 
BOOL procBoomerangMove ()
 
BOOL procInsectMoveInit ()
 
BOOL procInsectMove ()
 
int execute ()
 
int draw ()
 
virtual BOOL checkExplodeNow ()
 
virtual void deleteBombAndEffect ()
 
virtual void setCargoBombExplode ()
 
void onStateFlg0 (daNbomb_FLG0 i_flag)
 
void offStateFlg0 (daNbomb_FLG0 i_flag)
 
u32 checkStateFlg0 (daNbomb_FLG0 i_flag) const
 
u32 checkWaterBomb () const
 
u32 checkPlayerMake () const
 
s16 getExTime ()
 
- Public Member Functions inherited from dBomb_c
bool checkStateCarry ()
 
bool checkStateExplode ()
 
- Public Member Functions inherited from fopAc_ac_c
 fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 

Public Attributes

request_of_phase_process_class mPhase
 
J3DModelmpModel
 
dBgS_BombAcch mAcch
 
dBgS_AcchCir mAcchCir
 
dCcD_Stts mCcStts
 
dCcD_Sph mCcSph
 
dCcD_Sph mSph2
 
mDoExt_bckAnmmpBck
 
Mtx field_0xa40
 
Mtx field_0xa70
 
dBgS_BombLinChk mLineChk
 
cBgS_PolyInfo mInsectHitPolyInfo
 
Z2SoundObjSimple mSound
 
daPy_boomerangMove_c mBoomerangMove
 
u32 mStateFlg0
 
u8 mExplodeMode
 
u8 field_0xb51
 
u8 mNoHitPlayerTimer
 
s8 mSoundReverb
 
u8 mType
 
u8 field_0xB55 [0xB58 - 0xB55]
 
s16 mExTime
 
s16 field_0xb5a
 
s16 field_0xb5c
 
s16 mFreezeTimer
 
LIGHT_INFLUENCE mLightInfluence
 
WIND_INFLUENCE mWindInfluence
 
f32 mExplosionStrength
 
f32 field_0xbb0
 
u32 mPolySound
 
u32 mEffectEmitterIDs [5]
 
cXyz mEffectPosition
 
cXyz mEffectLastPosition
 
cXyz field_0xbe4
 
cXyz field_0xbf0
 
cXyz field_0xbfc
 
cXyz field_0xc08
 
cXyz field_0xc14
 
cXyz field_0xc20
 
cXyz field_0xc2c
 
BOOL(daNbomb_c::* mProcFunc )()
 
- Public Attributes inherited from fopAc_ac_c
int actor_type
 
create_tag_class actor_tag
 
create_tag_class draw_tag
 
profile_method_classsub_method
 
JKRSolidHeapheap
 
dEvt_info_c eventInfo
 
dKy_tevstr_c tevStr
 
u16 setID
 
u8 group
 
u8 cullType
 
u8 demoActorID
 
s8 subtype
 
u8 carryType
 
u32 actor_status
 
u32 actor_condition
 
fpc_ProcID parentActorID
 
actor_place home
 
actor_place old
 
actor_place current
 
csXyz shape_angle
 
cXyz scale
 
cXyz speed
 
MtxP cullMtx
 
union { 
 
   cull_box   box 
 
   cull_sphere   sphere 
 
cull 
 
f32 cullSizeFar
 
J3DModelmodel
 
dJntCol_cjntCol
 
f32 speedF
 
f32 gravity
 
f32 maxFallSpeed
 
cXyz eyePos
 
actor_attention_types attention_info
 
s16 field_0x560
 
s16 health
 
u8 field_0x564
 
u8 field_0x565
 
u8 field_0x566
 
s8 field_0x567
 
- Public Attributes inherited from leafdraw_class
base_process_class mBase
 
leafdraw_method_classmpDrawMtd
 
s8 mbUnk0
 
u8 mbUnk1
 
draw_priority_class mDwPi
 

Static Public Attributes

static const charm_arcNameList [6]
 
- Static Public Attributes inherited from fopAc_ac_c
static u32 stopStatus
 

Additional Inherited Members

- Static Public Member Functions inherited from dBomb_c
static bool checkFlowerBombWait (fopAc_ac_c *)
 
static bool checkWaterBomb (fopAc_ac_c *)
 
static bool checkInsectBombMove (fopAc_ac_c *)
 
static bool checkBombActor (fopAc_ac_c *i_actor)
 
static fopAc_ac_ccreateNormalBombPlayer (cXyz *i_pos)
 
static fopAc_ac_ccreateNormalBombExplode (cXyz *i_pos)
 
static fopAc_ac_ccreateWaterBombPlayer (cXyz *i_pos)
 
static fopAc_ac_ccreateFlowerBomb (cXyz *i_pos, csXyz *i_angle, int param_2)
 
static fopAc_ac_ccreateInsectBombPlayer (cXyz *i_pos)
 
static fopAc_ac_ccreateWaterBombExplode (cXyz *i_pos)
 
static fopAc_ac_ccreateEnemyWaterBomb (cXyz *i_pos, csXyz *i_angle, int i_roomNo)
 
static fopAc_ac_ccreateEnemyWaterBombHookshot (cXyz *i_pos, csXyz *i_angle, int i_roomNo)
 
- Static Public Member Functions inherited from fopAc_ac_c
static void setStopStatus (u32 status)
 

Detailed Description

Bomb.

Multi-purpose bomb actor. Used for normal bombs, water bombs and bomblings.

Member Enumeration Documentation

◆ daNbomb_FLG0

Enumerator
FLG0_PLAYER_MAKE 
FLG0_BOMB_HIT 
FLG0_WATER_BOMB 
FLG0_UNDERWATER 
FLG0_UNK_40 
FLG0_NO_HIT_PLAYER 
FLG0_CARGO_CARRY 
FLG0_FROZEN 
FLG0_INSECT_BOMB 
FLG0_UNK_800 
FLG0_DELETE_BOMB 
FLG0_UNK_2000 
FLG0_SET_HOOKSHOT_OFFSET 
FLG0_UNK_8000 
FLG0_UNK_10000 
FLG0_UNK_20000 

◆ daNbomb_TYPE

Enumerator
TYPE_NORMAL_PLAYER 
TYPE_WATER_PLAYER 
TYPE_INSECT_PLAYER 
TYPE_FLOWER 
TYPE_INSECT_ENEMY 
TYPE_WATER_ENEMY 

Constructor & Destructor Documentation

◆ daNbomb_c()

daNbomb_c::daNbomb_c ( )

◆ ~daNbomb_c()

daNbomb_c::~daNbomb_c ( )

Member Function Documentation

◆ checkExplode()

BOOL daNbomb_c::checkExplode ( )

◆ checkExplodeNow()

virtual BOOL daNbomb_c::checkExplodeNow ( )
inlinevirtual

Reimplemented from dBomb_c.

◆ checkPlayerMake()

u32 daNbomb_c::checkPlayerMake ( ) const
inline

◆ checkStateFlg0()

u32 daNbomb_c::checkStateFlg0 ( daNbomb_FLG0  i_flag) const
inline

◆ checkTimerStop()

bool daNbomb_c::checkTimerStop ( )

◆ checkWaterBomb()

u32 daNbomb_c::checkWaterBomb ( ) const
inline

◆ checkWaterIn()

BOOL daNbomb_c::checkWaterIn ( )

◆ coHitCallback()

void daNbomb_c::coHitCallback ( fopAc_ac_c i_hitActor)

d_a_nbomb.cpp Bomb Actor

◆ create()

int daNbomb_c::create ( )

◆ createHeap()

int daNbomb_c::createHeap ( )

◆ deleteBombAndEffect()

virtual void daNbomb_c::deleteBombAndEffect ( )
inlinevirtual

Reimplemented from dBomb_c.

◆ draw()

int daNbomb_c::draw ( )

◆ execute()

int daNbomb_c::execute ( )

◆ getExTime()

s16 daNbomb_c::getExTime ( )
inline

◆ insectLineCheck()

int daNbomb_c::insectLineCheck ( )

◆ offStateFlg0()

void daNbomb_c::offStateFlg0 ( daNbomb_FLG0  i_flag)
inline

◆ onStateFlg0()

void daNbomb_c::onStateFlg0 ( daNbomb_FLG0  i_flag)
inline

◆ procBoomerangMove()

BOOL daNbomb_c::procBoomerangMove ( )

◆ procBoomerangMoveInit()

BOOL daNbomb_c::procBoomerangMoveInit ( dCcD_GObjInf unused)

◆ procCarry()

BOOL daNbomb_c::procCarry ( )

◆ procCarryInit()

BOOL daNbomb_c::procCarryInit ( )

◆ procExplode()

BOOL daNbomb_c::procExplode ( )

◆ procExplodeInit()

BOOL daNbomb_c::procExplodeInit ( )

◆ procFlowerWait()

BOOL daNbomb_c::procFlowerWait ( )

◆ procFlowerWaitInit()

BOOL daNbomb_c::procFlowerWaitInit ( )

◆ procInsectMove()

BOOL daNbomb_c::procInsectMove ( )

◆ procInsectMoveInit()

BOOL daNbomb_c::procInsectMoveInit ( )

◆ procWait()

BOOL daNbomb_c::procWait ( )

◆ procWaitInit()

BOOL daNbomb_c::procWaitInit ( )

◆ searchEnemy()

int daNbomb_c::searchEnemy ( fopAc_ac_c i_enemy)

◆ setCargoBombExplode()

virtual void daNbomb_c::setCargoBombExplode ( )
inlinevirtual

Reimplemented from dBomb_c.

◆ setEffect()

void daNbomb_c::setEffect ( )

◆ setFreeze()

void daNbomb_c::setFreeze ( )

◆ setHitPolygon()

void daNbomb_c::setHitPolygon ( int  param_0)

◆ setHookshotOffset()

void daNbomb_c::setHookshotOffset ( )

◆ setRoomInfo()

void daNbomb_c::setRoomInfo ( )

◆ setSmokePos()

void daNbomb_c::setSmokePos ( )

◆ tgHitCallback()

void daNbomb_c::tgHitCallback ( dCcD_GObjInf i_hitObj)

Member Data Documentation

◆ field_0xa40

Mtx daNbomb_c::field_0xa40

◆ field_0xa70

Mtx daNbomb_c::field_0xa70

◆ field_0xb51

u8 daNbomb_c::field_0xb51

◆ field_0xB55

u8 daNbomb_c::field_0xB55[0xB58 - 0xB55]

◆ field_0xb5a

s16 daNbomb_c::field_0xb5a

◆ field_0xb5c

s16 daNbomb_c::field_0xb5c

◆ field_0xbb0

f32 daNbomb_c::field_0xbb0

◆ field_0xbe4

cXyz daNbomb_c::field_0xbe4

◆ field_0xbf0

cXyz daNbomb_c::field_0xbf0

◆ field_0xbfc

cXyz daNbomb_c::field_0xbfc

◆ field_0xc08

cXyz daNbomb_c::field_0xc08

◆ field_0xc14

cXyz daNbomb_c::field_0xc14

◆ field_0xc20

cXyz daNbomb_c::field_0xc20

◆ field_0xc2c

cXyz daNbomb_c::field_0xc2c

◆ m_arcNameList

const char * daNbomb_c::m_arcNameList
static
Initial value:
= {
}
static SECTION_RODATA char const l_arcNameBombE[]
Definition d_a_nbomb.cpp:45
static SECTION_RODATA char const l_arcNameBombEW[]
Definition d_a_nbomb.cpp:48
static SECTION_RODATA char const l_arcNameBombF[]
Definition d_a_nbomb.cpp:42

◆ mAcch

dBgS_BombAcch daNbomb_c::mAcch

◆ mAcchCir

dBgS_AcchCir daNbomb_c::mAcchCir

◆ mBoomerangMove

daPy_boomerangMove_c daNbomb_c::mBoomerangMove

◆ mCcSph

dCcD_Sph daNbomb_c::mCcSph

◆ mCcStts

dCcD_Stts daNbomb_c::mCcStts

◆ mEffectEmitterIDs

u32 daNbomb_c::mEffectEmitterIDs[5]

◆ mEffectLastPosition

cXyz daNbomb_c::mEffectLastPosition

◆ mEffectPosition

cXyz daNbomb_c::mEffectPosition

◆ mExplodeMode

u8 daNbomb_c::mExplodeMode

◆ mExplosionStrength

f32 daNbomb_c::mExplosionStrength

◆ mExTime

s16 daNbomb_c::mExTime

◆ mFreezeTimer

s16 daNbomb_c::mFreezeTimer

◆ mInsectHitPolyInfo

cBgS_PolyInfo daNbomb_c::mInsectHitPolyInfo

◆ mLightInfluence

LIGHT_INFLUENCE daNbomb_c::mLightInfluence

◆ mLineChk

dBgS_BombLinChk daNbomb_c::mLineChk

◆ mNoHitPlayerTimer

u8 daNbomb_c::mNoHitPlayerTimer

◆ mpBck

mDoExt_bckAnm* daNbomb_c::mpBck

◆ mPhase

request_of_phase_process_class daNbomb_c::mPhase

◆ mpModel

J3DModel* daNbomb_c::mpModel

◆ mPolySound

u32 daNbomb_c::mPolySound

◆ mProcFunc

BOOL(daNbomb_c::* daNbomb_c::mProcFunc) ()

◆ mSound

Z2SoundObjSimple daNbomb_c::mSound

◆ mSoundReverb

s8 daNbomb_c::mSoundReverb

◆ mSph2

dCcD_Sph daNbomb_c::mSph2

◆ mStateFlg0

u32 daNbomb_c::mStateFlg0

◆ mType

u8 daNbomb_c::mType

◆ mWindInfluence

WIND_INFLUENCE daNbomb_c::mWindInfluence

The documentation for this class was generated from the following files: