Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_tag_chkpoint.h
Go to the documentation of this file.
1#ifndef D_A_TAG_CHKPOINT_H
2#define D_A_TAG_CHKPOINT_H
3
4#include "d/d_com_inf_game.h"
6
7class daTag_Chk_c : public fopAc_ac_c {
8public:
9 int execute();
10 int draw();
11
12 u16 getAreaType() { return home.angle.z & 0x100; }
13 u8 getHeight() { return fopAcM_GetParam(this) & 0xff; }
14 u8 getSwBit() { return (fopAcM_GetParam(this) & 0xff00) >> 8; }
15 u8 getSwBit2() { return (fopAcM_GetParam(this) & 0xff0000) >> 16; }
16
17 int create() {
18 fopAcM_ct(this, daTag_Chk_c);
19
20 if (getAreaType() == 0) {
21 scale.x *= 50.0f;
22 scale.y *= 100.0f;
23 scale.z *= 50.0f;
24
27 } else {
28 scale.x *= 100.0f;
29 scale.y *= 100.0f;
30 scale.z *= 0.0f;
31
32 mVtxA.set(0.0f, current.pos.y, 0.0f);
33 mVtxB.set(0.0f, current.pos.y + scale.y, 0.0f);
34 }
35
37
38 if (getHeight() != 0xff) {
40 } else {
42 }
43
45 return cPhs_COMPLEATE_e;
46 }
47
48private:
49 /* 0x568 */ u8 field_0x568[8];
50 /* 0x570 */ cXyz mVtxA;
51 /* 0x57C */ cXyz mVtxB;
52};
53
54STATIC_ASSERT(sizeof(daTag_Chk_c) == 0x588);
55
56#endif /* D_A_TAG_CHKPOINT_H */
@ cPhs_COMPLEATE_e
Definition c_phase.h:15
Definition d_a_tag_chkpoint.h:7
u8 getHeight()
Definition d_a_tag_chkpoint.h:13
int execute()
Definition d_a_tag_chkpoint.cpp:15
u16 getAreaType()
Definition d_a_tag_chkpoint.h:12
cXyz mVtxB
Definition d_a_tag_chkpoint.h:51
u8 getSwBit()
Definition d_a_tag_chkpoint.h:14
u8 getSwBit2()
Definition d_a_tag_chkpoint.h:15
cXyz mVtxA
Definition d_a_tag_chkpoint.h:50
int create()
Definition d_a_tag_chkpoint.h:17
int draw()
Definition d_a_tag_chkpoint.cpp:90
u8 field_0x568[8]
Definition d_a_tag_chkpoint.h:49
Definition f_op_actor.h:243
actor_attention_types attention_info
Definition f_op_actor.h:280
actor_place home
Definition f_op_actor.h:262
cXyz eyePos
Definition f_op_actor.h:279
actor_place current
Definition f_op_actor.h:264
cXyz scale
Definition f_op_actor.h:266
STATIC_ASSERT(sizeof(daTag_Chk_c)==0x588)
u32 fopAcM_GetParam(const void *i_actor)
Definition f_op_actor_mng.h:204
unsigned short int u16
Definition types.h:10
unsigned char u8
Definition types.h:8
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
cXyz position
Definition f_op_actor.h:227
csXyz angle
Definition f_op_actor.h:219
cXyz pos
Definition f_op_actor.h:218
Definition c_xyz.h:7
void set(f32 pX, f32 pY, f32 pZ)
Definition c_xyz.h:98