Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_obj_mgate.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_MGATE_H
2#define D_A_OBJ_MGATE_H
3
5#include "d/d_com_inf_game.h"
6
16public:
17 enum Kind_e {
18 /* 0 */ KIND_IZUMI, // Spring
19 /* 1 */ KIND_HASHI, // Bridge
20 };
21
22 enum Type_e {
23 /* 0 */ TYPE_LEFT,
24 /* 1 */ TYPE_RIGHT,
25 };
26
27 /* 805935B8 */ void initBaseMtx();
28 /* 80593630 */ void setBaseMtx();
29 /* 8059388C */ int create1st();
30
31 /* 805937AC */ virtual int CreateHeap();
32 /* 80593760 */ virtual int Create();
33 /* 80593988 */ virtual int Execute(f32 (**)[3][4]);
34 /* 80593C4C */ virtual int Draw();
35 /* 80593D18 */ virtual int Delete();
36
37 u8 getType() { return fopAcM_GetParamBit(this, 0, 1); }
38 u8 getKind() { return fopAcM_GetParamBit(this, 1, 4); }
39 bool checkLock() { return fopAcM_GetParamBit(this, 5, 1); }
40 u8 checkOpen() { return fopAcM_GetParamBit(this, 8, 4); }
41
42private:
45 /* 0x5B0 */ J3DModel* mpModel;
46 /* 0x5B4 */ J3DModel* mpKeyModel;
47 /* 0x5B8 */ u8 mType;
48 /* 0x5B9 */ u8 mKind;
49 /* 0x5BA */ csXyz mGateAngle;
52 /* 0x5C8 */ int mCounter;
53 /* 0x5CC */ s16 mGateKeyAngle;
54};
55
56STATIC_ASSERT(sizeof(daObjMGate_c) == 0x5D0);
57
58#endif /* D_A_OBJ_MGATE_H */
Definition d_bg_s_movebg_actor.h:10
Ordon Spring Gate.
Definition d_a_obj_mgate.h:15
request_of_phase_process_class mKeyPhase
Definition d_a_obj_mgate.h:44
u8 checkOpen()
Definition d_a_obj_mgate.h:40
csXyz mGateAngle
Definition d_a_obj_mgate.h:49
Type_e
Definition d_a_obj_mgate.h:22
@ TYPE_LEFT
Definition d_a_obj_mgate.h:23
@ TYPE_RIGHT
Definition d_a_obj_mgate.h:24
f32 mGateKeySwingMultiplier
Definition d_a_obj_mgate.h:50
bool checkLock()
Definition d_a_obj_mgate.h:39
void initBaseMtx()
Definition d_a_obj_mgate.cpp:41
u8 mType
Definition d_a_obj_mgate.h:47
J3DModel * mpModel
Definition d_a_obj_mgate.h:45
u8 mKind
Definition d_a_obj_mgate.h:48
J3DModel * mpKeyModel
Definition d_a_obj_mgate.h:46
s16 mGateKeyAngle
Definition d_a_obj_mgate.h:53
int create1st()
Definition d_a_obj_mgate.cpp:147
void setBaseMtx()
Definition d_a_obj_mgate.cpp:55
int mCounter
Definition d_a_obj_mgate.h:52
virtual int Execute(f32(**)[3][4])
Definition d_a_obj_mgate.cpp:185
virtual int Draw()
Definition d_a_obj_mgate.cpp:236
request_of_phase_process_class mPhase
Definition d_a_obj_mgate.h:43
f32 mGateSwingMultiplier
Definition d_a_obj_mgate.h:51
virtual int CreateHeap()
Definition d_a_obj_mgate.cpp:127
u8 getType()
Definition d_a_obj_mgate.h:37
virtual int Delete()
Definition d_a_obj_mgate.cpp:253
u8 getKind()
Definition d_a_obj_mgate.h:38
virtual int Create()
Definition d_a_obj_mgate.cpp:75
Kind_e
Definition d_a_obj_mgate.h:17
@ KIND_IZUMI
Definition d_a_obj_mgate.h:18
@ KIND_HASHI
Definition d_a_obj_mgate.h:19
STATIC_ASSERT(sizeof(daObjMGate_c)==0x5D0)
u32 fopAcM_GetParamBit(void *ac, u8 shift, u8 bit)
Definition f_op_actor_mng.h:228
Definition d_a_ep.cpp:155
Definition d_a_ep.cpp:66
Definition d_a_hozelda.cpp:14
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned char u8
Definition types.h:8