Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_obj_swBallB.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_SWBALLB_H
2#define D_A_OBJ_SWBALLB_H
3
5#include "d/d_event_lib.h"
6#include "d/d_lib.h"
7
17public:
19
20 /* 80CF466C */ int checkArea_sub(fopAc_ac_c*);
21 /* 80CF47BC */ void search_ball();
22 /* 80CF496C */ void initBaseMtx();
23 /* 80CF498C */ void setBaseMtx();
24 /* 80CF49F0 */ int Create();
25 /* 80CF4B74 */ int CreateHeap();
26 /* 80CF4CE8 */ int create();
27 /* 80CF4E08 */ int execute();
28 /* 80CF4EB8 */ void actionRun();
29 /* 80CF5384 */ void actionStop();
30 /* 80CF5388 */ void PutCrrPos();
31 /* 80CF56A4 */ int draw();
32 /* 80CF582C */ int _delete();
33 /* 80CF5940 */ ~daObjSwBallB_c();
34
35 s32 getID() { return fopAcM_GetParamBit(this, 0, 8); }
36 u32 getSwbit2() { return fopAcM_GetParamBit(this, 8, 8); }
37 u32 getSwbit() { return fopAcM_GetParamBit(this, 16, 8); }
38 u32 getType() { return fopAcM_GetParamBit(this, 24, 4); }
39 u32 getArg1() { return fopAcM_GetParamBit(this, 28, 4); }
40 u8 getEvent() { return field_0x5a2; }
41 void clrFlag(u8 idx) { field_0x597[idx] = 0; }
42 void onFlag(u8 idx, u8 val) { field_0x597[idx] |= val; }
43 u8 checkFlag(u8 idx, u8 val) { return field_0x597[idx] & val; }
44 void setLightOn() { field_0x5ac = 1; }
45 void setLightOff() { field_0x5ad = 1; }
46
47private:
49 /* 0x584 */ J3DModel* mModel;
51 /* 0x58C */ u32 field_0x58c[2];
52 /* 0x594 */ u8 field_0x594;
53 /* 0x595 */ u8 field_0x595;
54 /* 0x596 */ u8 field_0x596;
55 /* 0x597 */ u8 field_0x597[2];
56 /* 0x598 */ u8 field_0x599[2];
57 /* 0x59C */ u32 field_0x59c;
58 /* 0x5A0 */ u8 field_0x5a0;
59 /* 0x5A1 */ u8 field_0x5a1;
60 /* 0x5A2 */ u16 field_0x5a2;
61 /* 0x5A4 */ u16 field_0x5a4;
62 /* 0x5A6 */ u16 field_0x5a6;
63 /* 0x5A8 */ int field_0x5a8;
64 /* 0x5AC */ u8 field_0x5ac;
65 /* 0x5AD */ u8 field_0x5ad;
66};
67
68// STATIC_ASSERT(sizeof(daObjSwBallB_c) == 0x5B0);
69
70#endif /* D_A_OBJ_SWBALLB_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition d_event_lib.h:24
Ball Switch B.
Definition d_a_obj_swBallB.h:16
u32 field_0x58c[2]
Definition d_a_obj_swBallB.h:51
u8 field_0x597[2]
Definition d_a_obj_swBallB.h:55
int draw()
Definition d_a_obj_swBallB.cpp:644
void initBaseMtx()
Definition d_a_obj_swBallB.cpp:253
u32 getType()
Definition d_a_obj_swBallB.h:38
int execute()
Definition d_a_obj_swBallB.cpp:461
u8 field_0x594
Definition d_a_obj_swBallB.h:52
void onFlag(u8 idx, u8 val)
Definition d_a_obj_swBallB.h:42
u8 field_0x5a1
Definition d_a_obj_swBallB.h:59
mDoExt_btkAnm * field_0x588
Definition d_a_obj_swBallB.h:50
u8 field_0x595
Definition d_a_obj_swBallB.h:53
u16 field_0x5a2
Definition d_a_obj_swBallB.h:60
u8 field_0x5a0
Definition d_a_obj_swBallB.h:58
void setBaseMtx()
Definition d_a_obj_swBallB.cpp:258
void setLightOn()
Definition d_a_obj_swBallB.h:44
u8 field_0x599[2]
Definition d_a_obj_swBallB.h:56
void PutCrrPos()
Definition d_a_obj_swBallB.cpp:569
int create()
Definition d_a_obj_swBallB.cpp:431
u32 field_0x59c
Definition d_a_obj_swBallB.h:57
void actionRun()
Definition d_a_obj_swBallB.cpp:480
int CreateHeap()
Definition d_a_obj_swBallB.cpp:406
void setLightOff()
Definition d_a_obj_swBallB.h:45
u8 getEvent()
Definition d_a_obj_swBallB.h:40
int Create()
Definition d_a_obj_swBallB.cpp:265
u8 checkFlag(u8 idx, u8 val)
Definition d_a_obj_swBallB.h:43
u16 field_0x5a6
Definition d_a_obj_swBallB.h:62
int checkArea_sub(fopAc_ac_c *)
Definition d_a_obj_swBallB.cpp:184
J3DModel * mModel
Definition d_a_obj_swBallB.h:49
int field_0x5a8
Definition d_a_obj_swBallB.h:63
void clrFlag(u8 idx)
Definition d_a_obj_swBallB.h:41
int _delete()
Definition d_a_obj_swBallB.cpp:672
daObjSwBallB_c()
Definition d_a_obj_swBallB.h:18
u8 field_0x5ad
Definition d_a_obj_swBallB.h:65
~daObjSwBallB_c()
Definition d_a_obj_swBallB.cpp:720
u32 getSwbit()
Definition d_a_obj_swBallB.h:37
u16 field_0x5a4
Definition d_a_obj_swBallB.h:61
u32 getSwbit2()
Definition d_a_obj_swBallB.h:36
request_of_phase_process_class field_0x57c
Definition d_a_obj_swBallB.h:48
u8 field_0x596
Definition d_a_obj_swBallB.h:54
s32 getID()
Definition d_a_obj_swBallB.h:35
void search_ball()
Definition d_a_obj_swBallB.cpp:213
void actionStop()
Definition d_a_obj_swBallB.cpp:556
u8 field_0x5ac
Definition d_a_obj_swBallB.h:64
u32 getArg1()
Definition d_a_obj_swBallB.h:39
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_ep.cpp:19
Definition d_a_hozelda.cpp:47
Definition d_a_hozelda.cpp:14
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8