Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_scene_exit.h
Go to the documentation of this file.
1#ifndef D_A_SCENE_EXIT_H
2#define D_A_SCENE_EXIT_H
3
5
14class daScex_c : public fopAc_ac_c {
15public:
17 int checkWork();
18 int execute();
19 inline int create();
20
21 u8 getArg1() { return (fopAcM_GetParam(this) >> 8) & 0xFF; }
22 u8 getArg0() { return fopAcM_GetParam(this) & 0xFF; }
23 u8 getSwNo() { return fopAcM_GetParam(this) >> 0x18; }
24 u16 getOffEventBit() { return home.angle.z & 0xFFF; }
25 u16 getOnEventBit() { return home.angle.x & 0xFFF; }
26 u8 getPathID() { return (fopAcM_GetParam(this) >> 0x10) & 0xFF; }
28
29 BOOL checkArea(const cXyz* param_0) {
30 cXyz spC;
31 mDoMtx_multVec(mMatrix, param_0, &spC);
32 if (spC.y >= 0.0f && spC.y <= scale.y && fabsf(spC.x) <= scale.x && fabsf(spC.z) <= scale.z) {
33 return TRUE;
34 }
35
36 return FALSE;
37 }
38
39 /* 0x568 */ Mtx mMatrix;
40 /* 0x598 */ u8 field_0x598;
41 /* 0x599 */ bool mSceneChangeOK;
42};
43
44#endif /* D_A_SCENE_EXIT_H */
Scene Exit.
Definition d_a_scene_exit.h:14
u8 getSwNo()
Definition d_a_scene_exit.h:23
int create()
Definition d_a_scene_exit.cpp:37
u16 getOnEventBit()
Definition d_a_scene_exit.h:25
Mtx mMatrix
Definition d_a_scene_exit.h:39
BOOL checkArea(const cXyz *param_0)
Definition d_a_scene_exit.h:29
int execute()
Definition d_a_scene_exit.cpp:59
u8 field_0x598
Definition d_a_scene_exit.h:40
u16 getOffEventBit()
Definition d_a_scene_exit.h:24
u8 getArg0()
Definition d_a_scene_exit.h:22
bool mSceneChangeOK
Definition d_a_scene_exit.h:41
u8 getArg1()
Definition d_a_scene_exit.h:21
int checkWork()
Definition d_a_scene_exit.cpp:13
daScex_c()
Definition d_a_scene_exit.h:16
u8 getPathID()
Definition d_a_scene_exit.h:26
void setSceneChangeOK()
Definition d_a_scene_exit.h:27
Definition f_op_actor.h:230
actor_place home
Definition f_op_actor.h:249
cXyz scale
Definition f_op_actor.h:253
f32 Mtx[3][4]
Definition mtx.h:25
int BOOL
Definition types.h:33
unsigned short int u16
Definition types.h:10
unsigned char u8
Definition types.h:8
u32 fopAcM_GetParam(const void *i_actor)
Definition f_op_actor_mng.h:192
void mDoMtx_multVec(CMtxP m, const Vec *src, Vec *dst)
Definition m_Do_mtx.h:43
float fabsf(float f)
Definition math.h:52
s16 x
Definition c_sxyz.h:7
s16 z
Definition c_sxyz.h:7
f32 z
Definition mtx.h:14
f32 x
Definition mtx.h:14
f32 y
Definition mtx.h:14
csXyz angle
Definition f_op_actor.h:206
Definition c_xyz.h:7