Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_obj_iceblock.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_ICEBLOCK_H
2#define D_A_OBJ_ICEBLOCK_H
3
4#include "d/d_bg_s_acch.h"
6#include "d/d_cc_d.h"
8#include "d/d_path.h"
9#include "d/d_bg_w.h"
10
20public:
27
32
39
40 /* 80C21CD8 */ static void PPCallBack(fopAc_ac_c*, fopAc_ac_c*, s16, dBgW_Base::PushPullLabel);
41 /* 80C21DC4 */ void initBaseMtx();
42 /* 80C21E24 */ void setBaseMtx();
43 /* 80C21EA4 */ u16 getPointNo();
44 /* 80C21F2C */ void loadCurrentPos();
45 /* 80C21FC8 */ int saveCurrentPos();
46 /* 80C22200 */ void enablePushPull();
47 /* 80C2224C */ void disablePushPull();
48 /* 80C227F4 */ int create1st();
49 /* 80C2294C */ int checkWalk();
50 /* 80C22B04 */ void clrCounter();
51 /* 80C22B28 */ void mode_proc_call();
52 /* 80C22EF8 */ void mode_init_wait();
53 /* 80C22F74 */ void mode_proc_wait();
54 /* 80C23058 */ void mode_init_walk();
55 /* 80C23088 */ void mode_proc_walk();
56 /* 80C23388 */ void setEffect();
57 /* 80C2350C */ int checkWallPre(s16);
58 /* 80C236C8 */ int checkBgHit();
59 /* 80C237B0 */ void bgCheck();
60 /* 80C23860 */ void init_bgCheck();
61 /* 80C238B0 */ BOOL checkFall();
62 /* 80C23A50 */ void event_proc_call();
63 /* 80C23B0C */ void actionWait();
64 /* 80C23B70 */ void actionOrderEvent();
65 /* 80C23C1C */ void actionEvent();
66 /* 80C23CA0 */ void actionDead();
67
68 /* 80C22618 */ virtual int CreateHeap();
69 /* 80C22298 */ virtual int Create();
70 /* 80C228B4 */ virtual int Execute(Mtx**);
71 /* 80C23CA4 */ virtual int Draw();
72 /* 80C23DA8 */ virtual int Delete();
73
74 u8 getSwbit() { return fopAcM_GetParamBit(this, 0, 8); }
75 int getPathId() { return fopAcM_GetParamBit(this, 8, 8); }
76 int getCorrectPointNo() { return fopAcM_GetParamBit(this, 0x10, 8); }
77 u8 getSwbit2() { return fopAcM_GetParamBit(this, 0x18, 8); }
78
80
82 /* 0x5A8 */ J3DModel* mpIceModel;
83 /* 0x5AC */ J3DModel* mpModel;
84 /* 0x5B0 */ dBgS_ObjAcch mAcch;
86 /* 0x7C8 */ dCcD_Stts mCcStts;
87 /* 0x804 */ dCcD_Cyl mCcCyl;
89 /* 0x944 */ dBgW* mpIceBgW;
90 /* 0x948 */ u8 mCounter[4];
91 /* 0x94C */ u8 mAction;
92 /* 0x94D */ u8 mMode;
93 /* 0x950 */ int mMoveDir;
94 /* 0x954 */ State_e mState;
95 /* 0x958 */ f32 mGroundY;
96 /* 0x95C */ cXyz mWallPrePos;
98 /* 0x9BC */ dPath* mpPath;
99 /* 0x9C0 */ u8 mSwbit;
100 /* 0x9C1 */ u8 mMaxSwNum;
101 /* 0x9C4 */ cXyz mWalkInitPos;
102 /* 0x9D0 */ u8 mWalkType;
103 /* 0x9D1 */ bool mIsPlayerRide;
104 /* 0x9D4 */ u32 field_0x9d4;
105 /* 0x9D8 */ u32 field_0x9d8;
106 /* 0x9DC */ u32 mKezuruEmtrID;
107 /* 0x9E0 */ u8 mHitCounter;
109};
110
111STATIC_ASSERT(sizeof(daObjIceBlk_c) == 0x9ec);
112
113#endif /* D_A_OBJ_ICEBLOCK_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JPAEmitter.h:94
Definition d_bg_s_movebg_actor.h:10
PushPullLabel
Definition d_bg_w_base.h:28
Definition d_bg_w.h:252
Sliding Ice Block.
Definition d_a_obj_iceblock.h:19
virtual int Create()
Definition d_a_obj_iceblock.cpp:236
dBgW * mpIceBgW
Definition d_a_obj_iceblock.h:89
void actionOrderEvent()
Definition d_a_obj_iceblock.cpp:808
cXyz mWallPrePos
Definition d_a_obj_iceblock.h:96
virtual int Draw()
Definition d_a_obj_iceblock.cpp:839
u8 getSwbit2()
Definition d_a_obj_iceblock.h:77
Action_e
Definition d_a_obj_iceblock.h:33
@ ACTION_EVENT_e
Definition d_a_obj_iceblock.h:36
@ ACTION_DEAD_e
Definition d_a_obj_iceblock.h:37
@ ACTION_ORDER_EVENT_e
Definition d_a_obj_iceblock.h:35
@ ACTION_WAIT_e
Definition d_a_obj_iceblock.h:34
dCcD_Stts mCcStts
Definition d_a_obj_iceblock.h:86
u32 field_0x9d4
Definition d_a_obj_iceblock.h:104
u8 getSwbit()
Definition d_a_obj_iceblock.h:74
dBgS_ObjAcch mAcch
Definition d_a_obj_iceblock.h:84
static void PPCallBack(fopAc_ac_c *, fopAc_ac_c *, s16, dBgW_Base::PushPullLabel)
Definition d_a_obj_iceblock.cpp:27
J3DModel * mpIceModel
Definition d_a_obj_iceblock.h:82
dBgW::PushPullLabel mPPLabel
Definition d_a_obj_iceblock.h:88
void actionEvent()
Definition d_a_obj_iceblock.cpp:824
dBgS_AcchCir mAcchCir
Definition d_a_obj_iceblock.h:85
int getCorrectPointNo()
Definition d_a_obj_iceblock.h:76
JPABaseEmitter * mColdEffEmitters[2]
Definition d_a_obj_iceblock.h:108
request_of_phase_process_class mPhase
Definition d_a_obj_iceblock.h:81
void clrCounter()
Definition d_a_obj_iceblock.cpp:460
u8 mCounter[4]
Definition d_a_obj_iceblock.h:90
int create1st()
Definition d_a_obj_iceblock.cpp:380
f32 mGroundY
Definition d_a_obj_iceblock.h:95
void initBaseMtx()
Definition d_a_obj_iceblock.cpp:67
u16 getPointNo()
Definition d_a_obj_iceblock.cpp:90
int checkWalk()
Definition d_a_obj_iceblock.cpp:416
void mode_proc_walk()
Definition d_a_obj_iceblock.cpp:584
J3DModel * mpModel
Definition d_a_obj_iceblock.h:83
void enablePushPull()
Definition d_a_obj_iceblock.cpp:200
void actionWait()
Definition d_a_obj_iceblock.cpp:798
u32 mKezuruEmtrID
Definition d_a_obj_iceblock.h:106
void setAction(u8 i_action)
Definition d_a_obj_iceblock.h:79
int checkWallPre(s16)
Definition d_a_obj_iceblock.cpp:649
Mode_e
Definition d_a_obj_iceblock.h:28
@ MODE_PROC_WALK_e
Definition d_a_obj_iceblock.h:30
@ MODE_PROC_WAIT_e
Definition d_a_obj_iceblock.h:29
bool mIsPlayerRide
Definition d_a_obj_iceblock.h:103
void init_bgCheck()
Definition d_a_obj_iceblock.cpp:744
State_e
Definition d_a_obj_iceblock.h:21
@ STATE_4_e
Definition d_a_obj_iceblock.h:25
@ STATE_2_e
Definition d_a_obj_iceblock.h:24
@ STATE_0_e
Definition d_a_obj_iceblock.h:22
@ STATE_LAND_e
Definition d_a_obj_iceblock.h:23
u8 mHitCounter
Definition d_a_obj_iceblock.h:107
u8 mSwbit
Definition d_a_obj_iceblock.h:99
dCcD_Cyl mCcCyl
Definition d_a_obj_iceblock.h:87
int saveCurrentPos()
Definition d_a_obj_iceblock.cpp:144
int getPathId()
Definition d_a_obj_iceblock.h:75
cXyz mWalkInitPos
Definition d_a_obj_iceblock.h:101
u8 mAction
Definition d_a_obj_iceblock.h:91
BOOL checkFall()
Definition d_a_obj_iceblock.cpp:756
virtual int Delete()
Definition d_a_obj_iceblock.cpp:861
void mode_proc_call()
Definition d_a_obj_iceblock.cpp:468
virtual int Execute(Mtx **)
Definition d_a_obj_iceblock.cpp:399
void bgCheck()
Definition d_a_obj_iceblock.cpp:717
int checkBgHit()
Definition d_a_obj_iceblock.cpp:688
void event_proc_call()
Definition d_a_obj_iceblock.cpp:790
u8 mWalkType
Definition d_a_obj_iceblock.h:102
void setBaseMtx()
Definition d_a_obj_iceblock.cpp:77
void mode_init_wait()
Definition d_a_obj_iceblock.cpp:535
dPath * mpPath
Definition d_a_obj_iceblock.h:98
virtual int CreateHeap()
Definition d_a_obj_iceblock.cpp:337
u32 field_0x9d8
Definition d_a_obj_iceblock.h:105
void loadCurrentPos()
Definition d_a_obj_iceblock.cpp:104
void disablePushPull()
Definition d_a_obj_iceblock.cpp:208
void mode_init_walk()
Definition d_a_obj_iceblock.cpp:576
u8 mMode
Definition d_a_obj_iceblock.h:92
void mode_proc_wait()
Definition d_a_obj_iceblock.cpp:557
State_e mState
Definition d_a_obj_iceblock.h:94
dBgS_ObjGndChk mGndChk
Definition d_a_obj_iceblock.h:97
void setEffect()
Definition d_a_obj_iceblock.cpp:626
u8 mMaxSwNum
Definition d_a_obj_iceblock.h:100
void actionDead()
Definition d_a_obj_iceblock.cpp:836
int mMoveDir
Definition d_a_obj_iceblock.h:93
STATIC_ASSERT(sizeof(daObjIceBlk_c)==0x9ec)
u32 fopAcM_GetParamBit(void *ac, u8 shift, u8 bit)
Definition f_op_actor_mng.h:228
f32 Mtx[3][4]
Definition mtx.h:15
Definition d_a_ep.cpp:155
Definition d_a_hozelda.cpp:20
Definition d_a_npc_fguard.cpp:98
Definition d_a_npc_fguard.cpp:94
Definition d_a_ep.cpp:110
Definition d_a_npc_fguard.cpp:86
Definition d_a_npc_fguard.cpp:70
Definition d_a_npc_cd2.cpp:35
Definition d_a_ep.cpp:19
Definition d_a_hozelda.cpp:14
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8