Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_item_static.h
Go to the documentation of this file.
1#ifndef D_A_D_A_ITEM_STATIC_H
2#define D_A_D_A_ITEM_STATIC_H
3
6#include "d/d_particle.h"
8
9class daItem_c;
10typedef void (daItem_c::*procFunc)();
11
12class daItem_c : public daItemBase_c {
13public:
26
27 enum Flag_e {
28 FLAG_UNK_2_e = (1 << 1),
29 FLAG_NO_MOVE_e = (1 << 2),
30 FLAG_NO_TIMER_e = (1 << 3),
33 };
34
39
51
53 /* 8015B0C4 */ void initBaseMtx();
54 /* 8015B108 */ void setBaseMtx();
55 /* 8015B190 */ void setBaseMtx_0();
56 /* 8015B1C8 */ void setBaseMtx_1();
57 /* 8015B3D8 */ void CreateInit();
58 /* 8015B7BC */ void setCullInfo();
59 /* 8015B7D4 */ int _daItem_create();
60 /* 8015BA9C */ int _daItem_execute();
61 /* 8015BD84 */ int _daItem_draw();
62 /* 8015BDE8 */ int _daItem_delete();
63 /* 8015BE60 */ void procInitNormal();
64 /* 8015BEA4 */ void procMainNormal();
65 /* 8015BFE8 */ void procMainEnemyCarry();
66 /* 8015BFEC */ void procInitForceGet();
67 /* 8015C038 */ void procMainForceGet();
68 /* 8015C058 */ void procInitSimpleGetDemo();
69 /* 8015C134 */ void procMainSimpleGetDemo();
70 /* 8015C200 */ void procInitGetDemoEvent();
71 /* 8015C2A4 */ void procWaitGetDemoEvent();
72 /* 8015C3BC */ void procMainGetDemoEvent();
73 /* 8015C41C */ void procInitBoomerangCarry();
74 /* 8015C514 */ void procMainBoomerangCarry();
75 /* 8015C5F4 */ void procInitSwOnWait();
76 /* 8015C648 */ void procMainSwOnWait();
77 /* 8015C708 */ void procInitBoomHitWait();
78 /* 8015C738 */ void procMainBoomHitWait();
79 /* 8015CAB8 */ void move_proc_call();
80 /* 8015CC4C */ void mode_wait_init();
81 /* 8015CC88 */ void mode_water_init();
82 /* 8015CCD0 */ void mode_wait();
83 /* 8015CDCC */ void mode_water();
84 /* 8015CEEC */ void itemGetNextExecute();
85 /* 8015D0A8 */ void itemGet();
86 /* 8015D370 */ BOOL checkCountTimer();
87 /* 8015D3CC */ BOOL checkPlayerGet();
88 /* 8015D410 */ void checkYogan();
89 /* 8015D480 */ void deleteItem();
90 /* 8015D4AC */ int itemActionForRupee();
91 /* 8015D56C */ int itemActionForHeart();
92 /* 8015D688 */ int itemActionForArrow();
93 /* 8015D700 */ int itemActionForBoomerang();
94 /* 8015D734 */ void bg_check();
95 /* 8015D834 */ void set_bound_se();
96 /* 8015D95C */ int CountTimer();
97 /* 8015D9F0 */ int initAction();
98 /* 8015DAAC */ void initFlag();
99 /* 8015DBF0 */ void initScale();
100 /* 8015DC40 */ void initSpeed(int);
101 /* 8015DE38 */ void initAngle();
102 u32 startCtrl();
104 u32 endControl();
105
106 /* 8015CE94 */ virtual void setTevStr();
107
109 int getStatus() { return mStatus; }
110
114
116
117 static procFunc mFuncPtr[];
118 static dCcD_SrcCyl m_cyl_src;
120
121 /* 0x92C */ s16 field_0x92c;
122 /* 0x92E */ u16 field_0x92e;
123 /* 0x930 */ cXyz mItemScale;
124 /* 0x93C */ int mSwitchNo;
125 /* 0x940 */ u16 field_0x940;
126 /* 0x942 */ s16 mWaitTimer;
127 /* 0x944 */ s16 mDisappearTimer;
129 /* 0x948 */ u8 mFlag;
130 /* 0x949 */ u8 mMode;
131 /* 0x94A */ u8 mStatus;
132 /* 0x94B */ u8 field_0x94b;
133 /* 0x94C */ u32 m_item_id;
134 /* 0x950 */ cXyz field_0x950;
135 /* 0x95C */ u8 mSwOnWaitTimer;
136 /* 0x95D */ bool field_0x95d;
137 /* 0x95E */ u8 mBoomWindTgTimer;
138 /* 0x95F */ u8 field_0x95f;
140 /* 0x96C */ cXyz mLastPos;
143 /* 0x9AC */ cXyz mSparklePos;
144 /* 0x9B8 */ u32 field_0x9b8;
145 /* 0x9BC */ u8 field_0x9bc[4];
146 /* 0x9C0 */ u8 field_0x9c0;
147 /* 0x9C1 */ u8 field_0x9c1;
148}; // Size: 0x9C4
149
150#endif /* D_A_D_A_ITEM_STATIC_H */
T cLib_checkBit(T value, T bit)
Definition c_lib.h:49
T cLib_calcTimer(T *value)
Definition c_lib.h:74
void cLib_onBit(T &value, T bit)
Definition c_lib.h:44
void cLib_offBit(T &value, T bit)
Definition c_lib.h:39
Definition Z2SoundObject.h:34
Definition d_particle.h:74
Definition d_a_itembase.h:29
Definition d_a_item_static.h:12
void setBaseMtx()
Definition d_a_obj_item.cpp:66
int itemActionForArrow()
Definition d_a_obj_item.cpp:1065
int itemActionForBoomerang()
Definition d_a_obj_item.cpp:1079
u16 field_0x940
Definition d_a_item_static.h:125
int itemActionForHeart()
Definition d_a_obj_item.cpp:1040
void procMainBoomerangCarry()
Definition d_a_obj_item.cpp:605
u32 startCtrl()
Definition d_a_item_static.cpp:8
dPa_followEcallBack mSparkleEmtr
Definition d_a_item_static.h:142
void setFlag(u8 pFlag)
Definition d_a_item_static.h:111
void procWaitGetDemoEvent()
Definition d_a_obj_item.cpp:543
s16 mSimpleExistTimer
Definition d_a_item_static.h:128
u8 field_0x9c1
Definition d_a_item_static.h:147
virtual void setTevStr()
Definition d_a_obj_item.cpp:859
void deleteItem()
Definition d_a_obj_item.cpp:1011
u8 mMode
Definition d_a_item_static.h:130
void initScale()
Definition d_a_obj_item.cpp:1234
s16 mDisappearTimer
Definition d_a_item_static.h:127
u8 mBoomWindTgTimer
Definition d_a_item_static.h:137
void procMainSwOnWait()
Definition d_a_obj_item.cpp:638
void initFlag()
Definition d_a_obj_item.cpp:1184
void mode_water_init()
Definition d_a_obj_item.cpp:770
Type_e
Definition d_a_item_static.h:14
@ TYPE_LAUNCH_e
Definition d_a_item_static.h:15
@ TYPE_FIXED_PLACE_e
Definition d_a_item_static.h:16
@ TYPE_UNK2_e
Definition d_a_item_static.h:17
@ TYPE_BOOM_HIT_e
Definition d_a_item_static.h:20
@ TYPE_LAUNCH_NO_RND_e
Definition d_a_item_static.h:21
@ TYPE_LAUNCH_FROM_PLAYER_e
Definition d_a_item_static.h:24
@ TYPE_SIMPLE_GET_e
Definition d_a_item_static.h:19
@ TYPE_WAIT_e
Definition d_a_item_static.h:18
@ TYPE_LAUNCH_SMALL_e
Definition d_a_item_static.h:23
@ TYPE_FORCE_GET_e
Definition d_a_item_static.h:22
void procInitNormal()
Definition d_a_obj_item.cpp:428
int CountTimer()
Definition d_a_obj_item.cpp:1148
static procFunc mFuncPtr[]
Definition d_a_item_static.h:1255
void setStatus(u8 status)
Definition d_a_item_static.h:108
u8 field_0x9bc[4]
Definition d_a_item_static.h:145
daItem_c()
Definition d_a_item_static.h:52
void checkYogan()
Definition d_a_obj_item.cpp:1002
u32 m_item_id
Definition d_a_item_static.h:133
BOOL checkPlayerGet()
Definition d_a_obj_item.cpp:997
void procMainForceGet()
Definition d_a_obj_item.cpp:474
Mode_e
Definition d_a_item_static.h:35
@ MODE_WATER_e
Definition d_a_item_static.h:37
@ MODE_WAIT_e
Definition d_a_item_static.h:36
int _daItem_delete()
Definition d_a_obj_item.cpp:416
bool checkBoomWindTgTimer()
Definition d_a_item_static.h:115
void procMainGetDemoEvent()
Definition d_a_obj_item.cpp:578
void setBaseMtx_0()
Definition d_a_obj_item.cpp:90
cXyz mLastPos
Definition d_a_item_static.h:140
u8 field_0x9c0
Definition d_a_item_static.h:146
void bg_check()
Definition d_a_obj_item.cpp:1085
daPy_boomerangMove_c mBoomerangMove
Definition d_a_item_static.h:139
int itemActionForRupee()
Definition d_a_obj_item.cpp:1017
void mode_wait_init()
Definition d_a_obj_item.cpp:764
void procInitGetDemoEvent()
Definition d_a_obj_item.cpp:523
s16 mWaitTimer
Definition d_a_item_static.h:126
cXyz mSparklePos
Definition d_a_item_static.h:143
u32 field_0x9b8
Definition d_a_item_static.h:144
void mode_wait()
Definition d_a_obj_item.cpp:781
Z2SoundObjSimple mSound
Definition d_a_item_static.h:141
static dCcD_SrcCyl m_cyl_src
Definition d_a_item_static.h:1264
BOOL checkCountTimer()
Definition d_a_obj_item.cpp:974
u8 field_0x95f
Definition d_a_item_static.h:138
void initAngle()
Definition d_a_obj_item.cpp:1315
void mode_water()
Definition d_a_obj_item.cpp:821
void move_proc_call()
Definition d_a_obj_item.cpp:727
void initSpeed(int)
Definition d_a_obj_item.cpp:1279
u8 field_0x94b
Definition d_a_item_static.h:132
bool checkFlag(u8 flag)
Definition d_a_item_static.h:112
u16 field_0x92e
Definition d_a_item_static.h:122
void procInitBoomerangCarry()
Definition d_a_obj_item.cpp:587
int _daItem_execute()
Definition d_a_obj_item.cpp:347
void itemGetNextExecute()
Definition d_a_obj_item.cpp:865
void set_bound_se()
Definition d_a_obj_item.cpp:1115
void setBaseMtx_1()
Definition d_a_obj_item.cpp:96
void procInitSwOnWait()
Definition d_a_obj_item.cpp:625
void itemGet()
Definition d_a_obj_item.cpp:923
cXyz mItemScale
Definition d_a_item_static.h:123
s16 field_0x92c
Definition d_a_item_static.h:121
Status_e
Definition d_a_item_static.h:40
@ STATUS_SIMPLE_GET_DEMO_e
Definition d_a_item_static.h:43
@ STATUS_GET_DEMO_EVENT_e
Definition d_a_item_static.h:45
@ STATUS_WAIT_GET_DEMO_EVENT_e
Definition d_a_item_static.h:44
@ STATUS_BOOM_HIT_WAIT_e
Definition d_a_item_static.h:48
@ STATUS_BOOMERANG_CARRY_e
Definition d_a_item_static.h:46
@ STATUS_NORMAL_e
Definition d_a_item_static.h:41
@ STATUS_FORCE_GET_e
Definition d_a_item_static.h:49
@ STATUS_SW_ON_WAIT_e
Definition d_a_item_static.h:47
@ STATUS_ENEMY_CARRY_e
Definition d_a_item_static.h:42
void procMainBoomHitWait()
Definition d_a_obj_item.cpp:672
void procMainSimpleGetDemo()
Definition d_a_obj_item.cpp:497
int mSwitchNo
Definition d_a_item_static.h:124
int initAction()
Definition d_a_obj_item.cpp:1168
Flag_e
Definition d_a_item_static.h:27
@ FLAG_NO_TIMER_e
Definition d_a_item_static.h:30
@ FLAG_DELETE_ITEM_e
Definition d_a_item_static.h:32
@ FLAG_INIT_GET_ITEM_e
Definition d_a_item_static.h:31
@ FLAG_NO_MOVE_e
Definition d_a_item_static.h:29
@ FLAG_UNK_2_e
Definition d_a_item_static.h:28
bool field_0x95d
Definition d_a_item_static.h:136
void setCullInfo()
Definition d_a_obj_item.cpp:266
cXyz field_0x950
Definition d_a_item_static.h:134
void procMainNormal()
Definition d_a_obj_item.cpp:435
u8 mStatus
Definition d_a_item_static.h:131
void initBaseMtx()
Definition d_a_obj_item.cpp:58
void procInitBoomHitWait()
Definition d_a_obj_item.cpp:663
static s32 m_timer_max
Definition d_a_item_static.h:119
u32 startControl()
Definition d_a_item_static.cpp:13
int _daItem_create()
Definition d_a_obj_item.cpp:273
u8 mFlag
Definition d_a_item_static.h:129
int _daItem_draw()
Definition d_a_obj_item.cpp:403
u8 mSwOnWaitTimer
Definition d_a_item_static.h:135
void procMainEnemyCarry()
Definition d_a_obj_item.cpp:463
int getStatus()
Definition d_a_item_static.h:109
void procInitSimpleGetDemo()
Definition d_a_obj_item.cpp:480
void clrFlag(u8 flag)
Definition d_a_item_static.h:113
void CreateInit()
Definition d_a_obj_item.cpp:164
u32 endControl()
Definition d_a_item_static.cpp:18
void procInitForceGet()
Definition d_a_obj_item.cpp:466
Definition d_a_player.h:32
void(daItem_c::* procFunc)()
Definition d_a_item_static.h:10
static volatile BOOL flag
Definition dspproc.cpp:20
static s32 status
Definition fstload.c:6
Definition d_a_hozelda.cpp:20
Definition d_a_npc_fguard.cpp:74
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8