Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_tag_push.h
Go to the documentation of this file.
1#ifndef D_A_TAG_PUSH_H
2#define D_A_TAG_PUSH_H
3
4#include "d/actor/d_a_npc.h"
6
7class daTag_Push_c : public fopAc_ac_c {
8public:
9 static void* srchActor(void*, void*);
10 int create();
11 int Delete();
12 int Execute();
13 int Draw();
14 int isDelete();
16
17 int getId() {
18 u16 id = (fopAcM_GetParam(this) & 0xFF000000) >> 24;
19 return id == 0xFF ? -1 : id;
20 }
21
22 u8 getBitSW() { return fopAcM_GetParam(this) & 0xFF; }
23
24 u8 getBitSW2() { return (fopAcM_GetParam(this) & 0xFF00) >> 8; }
25
27 if (home.angle.x != 0xFFFF) {
28 return (u16)home.angle.x;
29 }
30 return -1;
31 }
32
34 u16 rv = (fopAcM_GetParam(this) & 0xff0000) >> 16;
35 return (rv == 0xff) ? -1 : rv;
36 }
37
38 void pushBackPlayer(int param_1) {
39 if (getPlayerListNo() > -1) {
40 cXyz cStack_1c;
41 csXyz cStack_24;
43 &cStack_24) != 0)
44 {
45 daPy_getPlayerActorClass()->setPlayerPosAndAngle(&cStack_1c, cStack_24.y, 0);
46 if (param_1 != 0) {
48 dComIfGp_evmng_setGoal(&cStack_1c);
49 }
50 }
51 }
52 }
53
55
56 virtual ~daTag_Push_c() {}
57};
58
59STATIC_ASSERT(sizeof(daTag_Push_c) == 0x574);
60
61#endif /* D_A_TAG_PUSH_H */
Definition c_sxyz.h:10
Definition d_a_npc.h:30
void changeDemoMoveAngle(s16 i_angle)
Definition d_a_player.h:1113
virtual void setPlayerPosAndAngle(cXyz const *, s16, int)
Definition d_a_player.h:792
Definition d_a_tag_push.h:7
static void * srchActor(void *, void *)
Definition d_a_tag_push.cpp:7
int create()
Definition d_a_tag_push.cpp:51
u32 getFlowNodeNo()
Definition d_a_tag_push.h:26
int isDelete()
Definition d_a_tag_push.cpp:121
int getPlayerListNo()
Definition d_a_tag_push.h:33
daNpcT_ActorMngr_c mActorMngr
Definition d_a_tag_push.h:54
int Delete()
Definition d_a_tag_push.cpp:69
virtual ~daTag_Push_c()
Definition d_a_tag_push.h:56
int Execute()
Definition d_a_tag_push.cpp:73
int chkPointInArea(cXyz)
Definition d_a_tag_push.cpp:131
u8 getBitSW()
Definition d_a_tag_push.h:22
u8 getBitSW2()
Definition d_a_tag_push.h:24
int Draw()
Definition d_a_tag_push.cpp:117
int getId()
Definition d_a_tag_push.h:17
void pushBackPlayer(int param_1)
Definition d_a_tag_push.h:38
Definition f_op_actor.h:243
actor_place home
Definition f_op_actor.h:262
actor_place current
Definition f_op_actor.h:264
BOOL daNpcT_getPlayerInfoFromPlayerList(int param_0, int i_roomNo, cXyz *o_spawnPos, csXyz *o_angle)
Definition d_a_npc.cpp:2735
static u16 const id[4]
Definition d_a_obj_smtile.cpp:269
daPy_py_c * daPy_getPlayerActorClass()
Definition d_a_player.h:1258
STATIC_ASSERT(sizeof(daTag_Push_c)==0x574)
void dComIfGp_evmng_setGoal(cXyz *i_pos)
Definition d_com_inf_game.h:2727
u32 fopAcM_GetParam(const void *i_actor)
Definition f_op_actor_mng.h:204
unsigned long u32
Definition types.h:12
unsigned short int u16
Definition types.h:10
unsigned char u8
Definition types.h:8
s16 x
Definition c_sxyz.h:7
s16 y
Definition c_sxyz.h:7
csXyz angle
Definition f_op_actor.h:219
s8 roomNo
Definition f_op_actor.h:220
Definition c_xyz.h:7