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 /* 8048A6F8 */ int execute();
10
11 u16 getAreaType() { return home.angle.z & 0x100; }
12 u16 getHeight() { return fopAcM_GetParam(this) & 0xff; }
13 u8 getSwBit() { return fopAcM_GetParam(this) >> 8; }
14 u8 getSwBit2() { return fopAcM_GetParam(this) >> 16; }
15
16 int create() {
18
19 if (getAreaType() == 0) {
20 scale.x *= 50.0f;
21 scale.y *= 100.0f;
22 scale.z *= 50.0f;
23
26 } else {
27 scale.x *= 100.0f;
28 scale.y *= 100.0f;
29 scale.z *= 0.0f;
30
31 mVtxA.set(0.0f, current.pos.y, 0.0f);
32 mVtxB.set(0.0f, current.pos.y + scale.y, 0.0f);
33 }
34
36
37 u16 height = getHeight();
38 height != 0xff ? attention_info.position.y += height * 10.0f : attention_info.position.y += scale.y * 0.5f;
39
41 return cPhs_COMPLEATE_e;
42 }
43
44private:
45 /* 0x568 */ u8 field_0x568[8];
46 /* 0x570 */ cXyz mVtxA;
47 /* 0x57C */ cXyz mVtxB;
48};
49
50STATIC_ASSERT(sizeof(daTag_Chk_c) == 0x588);
51
52#endif /* D_A_TAG_CHKPOINT_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
@ cPhs_COMPLEATE_e
Definition c_phase.h:13
Definition d_a_tag_chkpoint.h:7
int execute()
Definition d_a_tag_chkpoint.cpp:11
u16 getAreaType()
Definition d_a_tag_chkpoint.h:11
cXyz mVtxB
Definition d_a_tag_chkpoint.h:47
u8 getSwBit()
Definition d_a_tag_chkpoint.h:13
u8 getSwBit2()
Definition d_a_tag_chkpoint.h:14
cXyz mVtxA
Definition d_a_tag_chkpoint.h:46
int create()
Definition d_a_tag_chkpoint.h:16
u16 getHeight()
Definition d_a_tag_chkpoint.h:12
u8 field_0x568[8]
Definition d_a_tag_chkpoint.h:45
STATIC_ASSERT(sizeof(daTag_Chk_c)==0x588)
u32 fopAcM_GetParam(const void *pActor)
Definition f_op_actor_mng.h:224
s16 z
Definition vec.h:19
f32 z
Definition vec.h:11
f32 x
Definition vec.h:11
f32 y
Definition vec.h:11
cXyz position
Definition f_op_actor.h:179
csXyz angle
Definition f_op_actor.h:171
cXyz pos
Definition f_op_actor.h:170
Definition d_a_hozelda.cpp:20
void set(f32 pX, f32 pY, f32 pZ)
Definition c_xyz.h:82
Definition d_a_ep.cpp:19
actor_attention_types attention_info
Definition f_op_actor.h:231
actor_place home
Definition f_op_actor.h:213
cXyz eyePos
Definition f_op_actor.h:230
actor_place current
Definition f_op_actor.h:215
cXyz scale
Definition f_op_actor.h:217
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8