Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_tbox2.h
Go to the documentation of this file.
1#ifndef D_A_TBOX2_H
2#define D_A_TBOX2_H
3
4#include "d/actor/d_a_tbox.h"
5
14class daTbox2_c : public daTboxBase_c {
15public:
20
25
32
39
40 /* 80496A18 */ void initBaseMtx();
41 /* 80496A54 */ void setBaseMtx();
42 /* 80496E3C */ int create1st();
43 /* 8049724C */ int demoProc();
44 /* 80497478 */ void openInit();
45 /* 804975EC */ void mode_proc_call();
46 /* 80497678 */ void mode_exec_wait();
47 /* 80497790 */ void mode_exec();
48 /* 8049780C */ void action();
49 /* 804978C8 */ void init_actionWait();
50 /* 804978D4 */ void actionWait();
51 /* 804978D8 */ void init_actionNotOpenDemo();
52 /* 804978E4 */ void actionNotOpenDemo();
53 /* 8049794C */ void init_actionOpenDemo();
54 /* 80497958 */ void actionOpenDemo();
55 /* 80497A0C */ void init_actionOpenWait();
56 /* 80497A18 */ void actionOpenWait();
57 /* 80497BD0 */ int setGetDemoItem();
58 /* 80497C60 */ BOOL boxCheck();
59
60 /* 80496C20 */ virtual int CreateHeap();
61 /* 80496AB8 */ virtual int Create();
62 /* 80497500 */ virtual int Execute(f32 (**)[3][4]);
63 /* 80497DA0 */ virtual int Draw();
64 /* 80497E6C */ virtual int Delete();
65 /* 80498140 */ virtual BOOL checkSmallTbox() { return true; }
66
67 u8 getModelType() { return fopAcM_GetParamBit(this, 8, 4); }
68 u8 getItemNo() { return fopAcM_GetParamBit(this, 0, 8); }
69
70private:
71 /* 0x718 */ u8 mReturnRupee;
73 /* 0x724 */ J3DModel* mpModel;
74 /* 0x728 */ mDoExt_bckAnm* mpBck;
75 /* 0x72C */ dBgS_ObjAcch mAcch;
77 /* 0x944 */ dCcD_Stts mCcStts2;
78 /* 0x980 */ dCcD_Cyl mCcCyl2;
79 /* 0xABC */ u8 mModelType;
80 /* 0xABD */ u8 mAction;
81 /* 0xABE */ u8 mMode;
82 /* 0xABF */ bool mNoDraw;
83 /* 0xAC0 */ u8 field_0xAC0[0xAC4 - 0xAC0];
84 /* 0xAC4 */ int mStaffIdx;
85 /* 0xAC8 */ dBgW* mBoxBgW;
86};
87
88STATIC_ASSERT(sizeof(daTbox2_c) == 0xACC);
89
90struct res_info {
91public:
92 /* 0x0 */ int bmd_no;
93 /* 0x4 */ int bck_no;
94 /* 0x8 */ int dzb_id;
95 /* 0xC */ int dzb_no;
96};
97
98
99#endif /* D_A_TBOX2_H */
Definition d_bg_w.h:252
Treasure Box 2.
Definition d_a_tbox2.h:14
virtual int Delete()
Definition d_a_tbox2.cpp:470
void mode_exec()
Definition d_a_tbox2.cpp:301
void actionOpenDemo()
Definition d_a_tbox2.cpp:353
EventAct_e
Definition d_a_tbox2.h:33
@ EVACT_OPEN_e
Definition d_a_tbox2.h:35
@ EVACT_APPEAR_e
Definition d_a_tbox2.h:36
@ EVACT_WAIT_e
Definition d_a_tbox2.h:34
@ EVACT_OPEN_SHORT_e
Definition d_a_tbox2.h:37
virtual int Draw()
Definition d_a_tbox2.cpp:454
J3DModel * mpModel
Definition d_a_tbox2.h:73
void mode_exec_wait()
Definition d_a_tbox2.cpp:278
void setBaseMtx()
Definition d_a_tbox2.cpp:17
int mStaffIdx
Definition d_a_tbox2.h:84
void init_actionOpenDemo()
Definition d_a_tbox2.cpp:348
void initBaseMtx()
Definition d_a_tbox2.cpp:11
u8 getItemNo()
Definition d_a_tbox2.h:68
bool mNoDraw
Definition d_a_tbox2.h:82
void init_actionWait()
Definition d_a_tbox2.cpp:324
int create1st()
Definition d_a_tbox2.cpp:160
dBgS_AcchCir mAcchCir
Definition d_a_tbox2.h:76
Type_e
Definition d_a_tbox2.h:16
@ TYPE_SMALL_e
Definition d_a_tbox2.h:17
@ TYPE_BIG_e
Definition d_a_tbox2.h:18
u8 mMode
Definition d_a_tbox2.h:81
virtual int Execute(f32(**)[3][4])
Definition d_a_tbox2.cpp:247
dCcD_Stts mCcStts2
Definition d_a_tbox2.h:77
virtual BOOL checkSmallTbox()
Definition d_a_tbox2.h:65
Mode_e
Definition d_a_tbox2.h:21
@ MODE_EXEC_WAIT_e
Definition d_a_tbox2.h:22
@ MODE_EXEC_e
Definition d_a_tbox2.h:23
int demoProc()
Definition d_a_tbox2.cpp:184
BOOL boxCheck()
Definition d_a_tbox2.cpp:430
dCcD_Cyl mCcCyl2
Definition d_a_tbox2.h:78
u8 mAction
Definition d_a_tbox2.h:80
int setGetDemoItem()
Definition d_a_tbox2.cpp:412
void action()
Definition d_a_tbox2.cpp:311
u8 getModelType()
Definition d_a_tbox2.h:67
virtual int Create()
Definition d_a_tbox2.cpp:90
request_of_phase_process_class mPhase
Definition d_a_tbox2.h:72
u8 field_0xAC0[0xAC4 - 0xAC0]
Definition d_a_tbox2.h:83
void init_actionOpenWait()
Definition d_a_tbox2.cpp:373
void actionNotOpenDemo()
Definition d_a_tbox2.cpp:337
u8 mReturnRupee
Definition d_a_tbox2.h:71
u8 mModelType
Definition d_a_tbox2.h:79
void openInit()
Definition d_a_tbox2.cpp:229
virtual int CreateHeap()
Definition d_a_tbox2.cpp:128
dBgW * mBoxBgW
Definition d_a_tbox2.h:85
mDoExt_bckAnm * mpBck
Definition d_a_tbox2.h:74
dBgS_ObjAcch mAcch
Definition d_a_tbox2.h:75
void actionWait()
Definition d_a_tbox2.cpp:329
void mode_proc_call()
Definition d_a_tbox2.cpp:267
Action_e
Definition d_a_tbox2.h:26
@ ACTION_OPEN_DEMO_e
Definition d_a_tbox2.h:28
@ ACTION_WAIT_e
Definition d_a_tbox2.h:30
@ ACTION_NOT_OPEN_DEMO_e
Definition d_a_tbox2.h:29
@ ACTION_OPEN_WAIT_e
Definition d_a_tbox2.h:27
void actionOpenWait()
Definition d_a_tbox2.cpp:378
void init_actionNotOpenDemo()
Definition d_a_tbox2.cpp:332
Definition d_a_tbox.h:12
STATIC_ASSERT(sizeof(daTbox2_c)==0xACC)
u32 fopAcM_GetParamBit(void *ac, u8 shift, u8 bit)
Definition f_op_actor_mng.h:228
Definition d_a_ep.cpp:155
Definition d_a_npc_fguard.cpp:98
Definition d_a_npc_fguard.cpp:94
Definition d_a_npc_fguard.cpp:86
Definition d_a_npc_fguard.cpp:70
Definition d_a_hozelda.cpp:56
Definition d_a_hozelda.cpp:14
Definition d_a_tbox2.h:90
int dzb_no
Definition d_a_tbox2.h:95
int bmd_no
Definition d_a_tbox2.h:92
int bck_no
Definition d_a_tbox2.h:93
int dzb_id
Definition d_a_tbox2.h:94
int BOOL
Definition types.h:27
float f32
Definition types.h:22
unsigned char u8
Definition types.h:8