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

#include <d_a_item_static.h>

+ Inheritance diagram for daItem_c:
+ Collaboration diagram for daItem_c:

Public Types

enum  Type_e {
  TYPE_LAUNCH_e , TYPE_FIXED_PLACE_e , TYPE_UNK2_e , TYPE_WAIT_e ,
  TYPE_SIMPLE_GET_e , TYPE_BOOM_HIT_e , TYPE_LAUNCH_NO_RND_e , TYPE_FORCE_GET_e ,
  TYPE_LAUNCH_SMALL_e , TYPE_LAUNCH_FROM_PLAYER_e
}
 
enum  Flag_e {
  FLAG_UNK_2_e = (1 << 1) , FLAG_NO_MOVE_e = (1 << 2) , FLAG_NO_TIMER_e = (1 << 3) , FLAG_INIT_GET_ITEM_e = (1 << 4) ,
  FLAG_DELETE_ITEM_e = (1 << 5)
}
 
enum  Mode_e { MODE_WAIT_e , MODE_WATER_e }
 
enum  Status_e {
  STATUS_NORMAL_e , STATUS_ENEMY_CARRY_e , STATUS_SIMPLE_GET_DEMO_e , STATUS_WAIT_GET_DEMO_EVENT_e ,
  STATUS_GET_DEMO_EVENT_e , STATUS_BOOMERANG_CARRY_e , STATUS_SW_ON_WAIT_e , STATUS_BOOM_HIT_WAIT_e ,
  STATUS_FORCE_GET_e
}
 

Public Member Functions

 daItem_c ()
 
void initBaseMtx ()
 
void setBaseMtx ()
 
void setBaseMtx_0 ()
 
void setBaseMtx_1 ()
 
void CreateInit ()
 
void setCullInfo ()
 
int _daItem_create ()
 
int _daItem_execute ()
 
int _daItem_draw ()
 
int _daItem_delete ()
 
void procInitNormal ()
 
void procMainNormal ()
 
void procMainEnemyCarry ()
 
void procInitForceGet ()
 
void procMainForceGet ()
 
void procInitSimpleGetDemo ()
 
void procMainSimpleGetDemo ()
 
void procInitGetDemoEvent ()
 
void procWaitGetDemoEvent ()
 
void procMainGetDemoEvent ()
 
void procInitBoomerangCarry ()
 
void procMainBoomerangCarry ()
 
void procInitSwOnWait ()
 
void procMainSwOnWait ()
 
void procInitBoomHitWait ()
 
void procMainBoomHitWait ()
 
void move_proc_call ()
 
void mode_wait_init ()
 
void mode_water_init ()
 
void mode_wait ()
 
void mode_water ()
 
void itemGetNextExecute ()
 
void itemGet ()
 
BOOL checkCountTimer ()
 
BOOL checkPlayerGet ()
 
void checkYogan ()
 
void deleteItem ()
 
int itemActionForRupee ()
 
int itemActionForHeart ()
 
int itemActionForArrow ()
 
int itemActionForBoomerang ()
 
void bg_check ()
 
void set_bound_se ()
 
int CountTimer ()
 
int initAction ()
 
void initFlag ()
 
void initScale ()
 
void initSpeed (int)
 
void initAngle ()
 
u32 startCtrl ()
 
u32 startControl ()
 
u32 endControl ()
 
virtual void setTevStr ()
 
void setStatus (u8 status)
 
int getStatus ()
 
void setFlag (u8 pFlag)
 
bool checkFlag (u8 flag)
 
void clrFlag (u8 flag)
 
bool checkBoomWindTgTimer ()
 
- Public Member Functions inherited from daItemBase_c
u8 getItemNo ()
 
void hide ()
 
void show ()
 
void changeDraw ()
 
u8 chkDraw ()
 
void dead ()
 
u8 chkDead ()
 
int CreateItemHeap (char const *, s16, s16, s16, s16, s16, s16, s16)
 
int DeleteBase (char const *)
 
void setListEnd ()
 
void animPlay (f32, f32, f32, f32, f32, f32)
 
const daItemBase_datagetData ()
 
virtual int DrawBase ()
 
virtual void setListStart ()
 
virtual void settingBeforeDraw ()
 
virtual void setShadow ()
 
virtual void animEntry ()
 
virtual void RotateYBase ()
 
virtual int clothCreate ()
 
virtual int __CreateHeap ()
 
virtual BOOL chkFlag (int)
 
virtual s8 getTevFrm ()
 
virtual s8 getBtpFrm ()
 
virtual u8 getShadowSize ()
 
virtual u8 getCollisionH ()
 
virtual u8 getCollisionR ()
 
- 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

s16 field_0x92c
 
u16 field_0x92e
 
cXyz mItemScale
 
int mSwitchNo
 
u16 field_0x940
 
s16 mWaitTimer
 
s16 mDisappearTimer
 
s16 mSimpleExistTimer
 
u8 mFlag
 
u8 mMode
 
u8 mStatus
 
u8 field_0x94b
 
u32 m_item_id
 
cXyz field_0x950
 
u8 mSwOnWaitTimer
 
bool field_0x95d
 
u8 mBoomWindTgTimer
 
u8 field_0x95f
 
daPy_boomerangMove_c mBoomerangMove
 
cXyz mLastPos
 
Z2SoundObjSimple mSound
 
dPa_followEcallBack mSparkleEmtr
 
cXyz mSparklePos
 
u32 field_0x9b8
 
u8 field_0x9bc [4]
 
u8 field_0x9c0
 
u8 field_0x9c1
 
- Public Attributes inherited from daItemBase_c
request_of_phase_process_class mPhase
 
J3DModelmpModel
 
mDoExt_btkAnmmpBtkAnm
 
mDoExt_bpkAnmmpBpkAnm
 
mDoExt_brkAnmmpBrkAnm
 
mDoExt_bckAnmmpBckAnm
 
mDoExt_btpAnmmpBtpAnm
 
dBgS_ObjAcch mAcch
 
dBgS_AcchCir mAcchCir
 
dCcD_Stts mCcStts
 
dCcD_Cyl mCcCyl
 
u32 mShadowKey
 
u32 mItemBitNo
 
int m_timer
 
s16 m_get_timer
 
u8 m_itemNo
 
u8 field_0x92b
 
- 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 procFunc mFuncPtr []
 
static dCcD_SrcCyl m_cyl_src
 
static s32 m_timer_max = 10000
 
- Static Public Attributes inherited from daItemBase_c
static daItemBase_data const m_data
 
- Static Public Attributes inherited from fopAc_ac_c
static u32 stopStatus
 

Additional Inherited Members

- Static Public Member Functions inherited from fopAc_ac_c
static void setStopStatus (u32 status)
 

Member Enumeration Documentation

◆ Flag_e

Enumerator
FLAG_UNK_2_e 
FLAG_NO_MOVE_e 
FLAG_NO_TIMER_e 
FLAG_INIT_GET_ITEM_e 
FLAG_DELETE_ITEM_e 

◆ Mode_e

Enumerator
MODE_WAIT_e 
MODE_WATER_e 

◆ Status_e

Enumerator
STATUS_NORMAL_e 
STATUS_ENEMY_CARRY_e 
STATUS_SIMPLE_GET_DEMO_e 
STATUS_WAIT_GET_DEMO_EVENT_e 
STATUS_GET_DEMO_EVENT_e 
STATUS_BOOMERANG_CARRY_e 
STATUS_SW_ON_WAIT_e 
STATUS_BOOM_HIT_WAIT_e 
STATUS_FORCE_GET_e 

◆ Type_e

Enumerator
TYPE_LAUNCH_e 
TYPE_FIXED_PLACE_e 
TYPE_UNK2_e 
TYPE_WAIT_e 
TYPE_SIMPLE_GET_e 
TYPE_BOOM_HIT_e 
TYPE_LAUNCH_NO_RND_e 
TYPE_FORCE_GET_e 
TYPE_LAUNCH_SMALL_e 
TYPE_LAUNCH_FROM_PLAYER_e 

Constructor & Destructor Documentation

◆ daItem_c()

daItem_c::daItem_c ( )
inline

Member Function Documentation

◆ _daItem_create()

int daItem_c::_daItem_create ( )

◆ _daItem_delete()

int daItem_c::_daItem_delete ( )

◆ _daItem_draw()

int daItem_c::_daItem_draw ( )

◆ _daItem_execute()

int daItem_c::_daItem_execute ( )

◆ bg_check()

void daItem_c::bg_check ( )

◆ checkBoomWindTgTimer()

bool daItem_c::checkBoomWindTgTimer ( )
inline

◆ checkCountTimer()

BOOL daItem_c::checkCountTimer ( )

◆ checkFlag()

bool daItem_c::checkFlag ( u8  flag)
inline

◆ checkPlayerGet()

BOOL daItem_c::checkPlayerGet ( )

◆ checkYogan()

void daItem_c::checkYogan ( )

◆ clrFlag()

void daItem_c::clrFlag ( u8  flag)
inline

◆ CountTimer()

int daItem_c::CountTimer ( )

◆ CreateInit()

void daItem_c::CreateInit ( )

◆ deleteItem()

void daItem_c::deleteItem ( )

◆ endControl()

u32 daItem_c::endControl ( )

◆ getStatus()

int daItem_c::getStatus ( )
inline

◆ initAction()

int daItem_c::initAction ( )

◆ initAngle()

void daItem_c::initAngle ( )

◆ initBaseMtx()

void daItem_c::initBaseMtx ( )

◆ initFlag()

void daItem_c::initFlag ( )

◆ initScale()

void daItem_c::initScale ( )

◆ initSpeed()

void daItem_c::initSpeed ( int  i_noTypeChk)

◆ itemActionForArrow()

int daItem_c::itemActionForArrow ( )

◆ itemActionForBoomerang()

int daItem_c::itemActionForBoomerang ( )

◆ itemActionForHeart()

int daItem_c::itemActionForHeart ( )

◆ itemActionForRupee()

int daItem_c::itemActionForRupee ( )

◆ itemGet()

void daItem_c::itemGet ( )

◆ itemGetNextExecute()

void daItem_c::itemGetNextExecute ( )

◆ mode_wait()

void daItem_c::mode_wait ( )

◆ mode_wait_init()

void daItem_c::mode_wait_init ( )

◆ mode_water()

void daItem_c::mode_water ( )

◆ mode_water_init()

void daItem_c::mode_water_init ( )

◆ move_proc_call()

void daItem_c::move_proc_call ( )

◆ procInitBoomerangCarry()

void daItem_c::procInitBoomerangCarry ( )

◆ procInitBoomHitWait()

void daItem_c::procInitBoomHitWait ( )

◆ procInitForceGet()

void daItem_c::procInitForceGet ( )

◆ procInitGetDemoEvent()

void daItem_c::procInitGetDemoEvent ( )

◆ procInitNormal()

void daItem_c::procInitNormal ( )

◆ procInitSimpleGetDemo()

void daItem_c::procInitSimpleGetDemo ( )

◆ procInitSwOnWait()

void daItem_c::procInitSwOnWait ( )

◆ procMainBoomerangCarry()

void daItem_c::procMainBoomerangCarry ( )

◆ procMainBoomHitWait()

void daItem_c::procMainBoomHitWait ( )

◆ procMainEnemyCarry()

void daItem_c::procMainEnemyCarry ( )

◆ procMainForceGet()

void daItem_c::procMainForceGet ( )

◆ procMainGetDemoEvent()

void daItem_c::procMainGetDemoEvent ( )

◆ procMainNormal()

void daItem_c::procMainNormal ( )

◆ procMainSimpleGetDemo()

void daItem_c::procMainSimpleGetDemo ( )

◆ procMainSwOnWait()

void daItem_c::procMainSwOnWait ( )

◆ procWaitGetDemoEvent()

void daItem_c::procWaitGetDemoEvent ( )

◆ set_bound_se()

void daItem_c::set_bound_se ( )

◆ setBaseMtx()

void daItem_c::setBaseMtx ( )

◆ setBaseMtx_0()

void daItem_c::setBaseMtx_0 ( )

◆ setBaseMtx_1()

void daItem_c::setBaseMtx_1 ( )

◆ setCullInfo()

void daItem_c::setCullInfo ( )

◆ setFlag()

void daItem_c::setFlag ( u8  pFlag)
inline

◆ setStatus()

void daItem_c::setStatus ( u8  status)
inline

◆ setTevStr()

void daItem_c::setTevStr ( )
virtual

Reimplemented from daItemBase_c.

◆ startControl()

u32 daItem_c::startControl ( )

◆ startCtrl()

u32 daItem_c::startCtrl ( )

Member Data Documentation

◆ field_0x92c

s16 daItem_c::field_0x92c

◆ field_0x92e

u16 daItem_c::field_0x92e

◆ field_0x940

u16 daItem_c::field_0x940

◆ field_0x94b

u8 daItem_c::field_0x94b

◆ field_0x950

cXyz daItem_c::field_0x950

◆ field_0x95d

bool daItem_c::field_0x95d

◆ field_0x95f

u8 daItem_c::field_0x95f

◆ field_0x9b8

u32 daItem_c::field_0x9b8

◆ field_0x9bc

u8 daItem_c::field_0x9bc[4]

◆ field_0x9c0

u8 daItem_c::field_0x9c0

◆ field_0x9c1

u8 daItem_c::field_0x9c1

◆ m_cyl_src

dCcD_SrcCyl daItem_c::m_cyl_src
static
Initial value:
= {
{
{0, {{0, 0, 0}, {0xFFFFFFFF, 17}, 0x59}},
{dCcD_SE_NONE, 0, 0, 0, {0}},
{dCcD_SE_NONE, 0, 0, 0, {4}},
{0},
},
{
{0.0f, 0.0f, 0.0f},
10.0f,
50.0f,
},
}
@ dCcD_SE_NONE
Definition d_cc_d.h:13

◆ m_item_id

u32 daItem_c::m_item_id

◆ m_timer_max

s32 daItem_c::m_timer_max = 10000
static

◆ mBoomerangMove

daPy_boomerangMove_c daItem_c::mBoomerangMove

◆ mBoomWindTgTimer

u8 daItem_c::mBoomWindTgTimer

◆ mDisappearTimer

s16 daItem_c::mDisappearTimer

◆ mFlag

u8 daItem_c::mFlag

◆ mFuncPtr

procFunc daItem_c::mFuncPtr
static
Initial value:
= {
}
T cLib_calcTimer(T *value)
Definition c_lib.h:74
void procMainBoomerangCarry()
Definition d_a_obj_item.cpp:605
void procWaitGetDemoEvent()
Definition d_a_obj_item.cpp:543
void procMainSwOnWait()
Definition d_a_obj_item.cpp:638
void procMainForceGet()
Definition d_a_obj_item.cpp:474
void procMainGetDemoEvent()
Definition d_a_obj_item.cpp:578
void procMainBoomHitWait()
Definition d_a_obj_item.cpp:672
void procMainSimpleGetDemo()
Definition d_a_obj_item.cpp:497
void procMainNormal()
Definition d_a_obj_item.cpp:435
void procMainEnemyCarry()
Definition d_a_obj_item.cpp:463

◆ mItemScale

cXyz daItem_c::mItemScale

◆ mLastPos

cXyz daItem_c::mLastPos

◆ mMode

u8 daItem_c::mMode

◆ mSimpleExistTimer

s16 daItem_c::mSimpleExistTimer

◆ mSound

Z2SoundObjSimple daItem_c::mSound

◆ mSparkleEmtr

dPa_followEcallBack daItem_c::mSparkleEmtr

◆ mSparklePos

cXyz daItem_c::mSparklePos

◆ mStatus

u8 daItem_c::mStatus

◆ mSwitchNo

int daItem_c::mSwitchNo

◆ mSwOnWaitTimer

u8 daItem_c::mSwOnWaitTimer

◆ mWaitTimer

s16 daItem_c::mWaitTimer

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