Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_tag_evtarea.h
Go to the documentation of this file.
1#ifndef D_A_TAG_EVTAREA_H
2#define D_A_TAG_EVTAREA_H
3
5
6class daTag_EvtArea_c : public fopAc_ac_c {
7public:
9 BOOL Delete();
10 BOOL Execute();
11 BOOL Draw();
12 BOOL isDelete();
14
16 cXyz local_28(0.0f, 0.0f, 0.0f);
17 return chkPointInArea(param_0, local_28);
18 }
19
20 virtual ~daTag_EvtArea_c() {}
21
22 int getType() {
23 u16 type = shape_angle.z & 0xFF;
24 return type == 0xFF ? 0 : type;
25 }
26
28 u16 no = (shape_angle.z & 0xff00) >> 8;
29 return no == 0xff ? 0 : no;
30 }
31
33 u32 ret = fopAcM_GetParam(this) & 0xfff;
34 return ret == 0xfff ? -1 : ret;
35 }
36
38 u32 ret = (fopAcM_GetParam(this) & 0xfff000) >> 12;
39 return ret == 0xfff ? -1 : ret;
40 }
41
42 u8 getBitSW() { return home.angle.x & 0xff; }
43
44 u8 getBitSW2() { return (home.angle.x & 0xff00) >> 8; }
45
46 void noEffect() { field_0x56c = 1; }
47
48private:
49 /* 0x568 vtable */
50 /* 0x56C */ u8 field_0x56c;
51};
52
54
55#endif /* D_A_TAG_EVTAREA_H */
cPhs__Step
Definition c_phase.h:8
Definition d_a_tag_evtarea.h:6
u32 getOffEvtBit()
Definition d_a_tag_evtarea.h:37
u8 field_0x56c
Definition d_a_tag_evtarea.h:50
BOOL chkPointInArea(cXyz param_0)
Definition d_a_tag_evtarea.h:15
s32 getNo()
Definition d_a_tag_evtarea.h:27
BOOL chkPointInArea(cXyz, cXyz)
Definition d_a_tag_evtarea.cpp:151
virtual ~daTag_EvtArea_c()
Definition d_a_tag_evtarea.h:20
u32 getOnEvtBit()
Definition d_a_tag_evtarea.h:32
BOOL Execute()
Definition d_a_tag_evtarea.cpp:100
BOOL Delete()
Definition d_a_tag_evtarea.cpp:96
u8 getBitSW()
Definition d_a_tag_evtarea.h:42
u8 getBitSW2()
Definition d_a_tag_evtarea.h:44
int getType()
Definition d_a_tag_evtarea.h:22
BOOL Draw()
Definition d_a_tag_evtarea.cpp:129
cPhs__Step create()
Definition d_a_tag_evtarea.cpp:11
void noEffect()
Definition d_a_tag_evtarea.h:46
BOOL isDelete()
Definition d_a_tag_evtarea.cpp:133
Definition f_op_actor.h:230
actor_place home
Definition f_op_actor.h:249
csXyz shape_angle
Definition f_op_actor.h:252
STATIC_ASSERT(sizeof(daTag_EvtArea_c)==0x570)
int BOOL
Definition types.h:33
unsigned long u32
Definition types.h:12
unsigned short int u16
Definition types.h:10
signed long s32
Definition types.h:11
unsigned char u8
Definition types.h:8
u32 fopAcM_GetParam(const void *i_actor)
Definition f_op_actor_mng.h:192
s16 x
Definition c_sxyz.h:7
s16 z
Definition c_sxyz.h:7
csXyz angle
Definition f_op_actor.h:206
Definition c_xyz.h:7