Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_obj_sWallShutter.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_SWALLSHUTTER_H
2#define D_A_OBJ_SWALLSHUTTER_H
3
6#include "m_Do/m_Do_hostIO.h"
7
17public:
18 enum TYPE_e {
19 TYPE_ROCKWALL_e, // Goron Mines Shutter Wall
20 TYPE_SUBDAN_e, // Cave of Ordeals Shutter Wall
21 };
22
29
30 /* 805982A4 */ void setBaseMtx();
31 /* 805983C4 */ int create();
32 /* 805985B4 */ void moveMain();
33 /* 8059873C */ void init_modeWait();
34 /* 80598748 */ void modeWait();
35 /* 8059879C */ void init_modeMoveDownInit();
36 /* 805989D0 */ void modeMoveDownInit();
37 /* 80598A04 */ void init_modeMoveDown();
38 /* 80598AFC */ void modeMoveDown();
39 /* 80598D4C */ void init_modeMoveDownEnd();
40 /* 80598D58 */ void modeMoveDownEnd();
41
42 /* 80598344 */ virtual int CreateHeap();
43 /* 80598564 */ virtual int Execute(Mtx**);
44 /* 80598D5C */ virtual int Draw();
45 /* 80598E00 */ virtual int Delete();
46
47 int getSwBit() { return fopAcM_GetParamBit(this, 0, 8); }
48 int getModelType() { return fopAcM_GetParamBit(this, 8, 4); }
49
51 /* 0x5A8 */ J3DModel* mpModel;
52 /* 0x5AC */ u8 mModelType;
53 /* 0x5AD */ u8 mMode;
54 /* 0x5B0 */ f32 field_0x5b0;
55 /* 0x5B4 */ u8 field_0x5B4[0x5B8 - 0x5B4];
56 /* 0x5B8 */ csXyz mShakeRot;
57 /* 0x5C0 */ f32 mShakeStrength;
58 /* 0x5C4 */ f32 mShakeAmpZ;
59 /* 0x5C8 */ f32 mShakeAmpY;
60 /* 0x5CC */ f32 mShakeAtten;
61 /* 0x5D0 */ f32 mMaxAtten;
62 /* 0x5D4 */ f32 mMinAtten;
63 /* 0x5D8 */ int mCounter;
64 /* 0x5DC */ u32 mEmitterID0;
65 /* 0x5E0 */ u32 mEmitterID1;
66 /* 0x5E4 */ u8 field_0x5e4[0x5e8 - 0x5e4];
67};
68
69STATIC_ASSERT(sizeof(daSwShutter_c) == 0x5e8);
70
72public:
73 /* 805981EC */ daSwShutter_HIO_c();
74 /* 80598ECC */ virtual ~daSwShutter_HIO_c() {}
75
76 /* 0x04 */ f32 mInitSpeed;
77 /* 0x08 */ f32 mMaxSpeed;
78 /* 0x0C */ f32 mAcceleration;
80 /* 0x14 */ f32 mShakeStrength;
81 /* 0x18 */ f32 mShakeAmpZ;
82 /* 0x1C */ f32 mShakeAmpY;
83 /* 0x20 */ f32 mShakeAtten;
84 /* 0x24 */ f32 mMaxAtten;
85 /* 0x28 */ f32 mMinAtten;
86};
87
88
89#endif /* D_A_OBJ_SWALLSHUTTER_H */
Definition d_bg_s_movebg_actor.h:10
Definition d_a_obj_sWallShutter.h:71
f32 mShakeAtten
Definition d_a_obj_sWallShutter.h:83
f32 mShakeAmpZ
Definition d_a_obj_sWallShutter.h:81
f32 mShakeStrength
Definition d_a_obj_sWallShutter.h:80
f32 mMaxSpeed
Definition d_a_obj_sWallShutter.h:77
f32 mInitSpeed
Definition d_a_obj_sWallShutter.h:76
daSwShutter_HIO_c()
Definition d_a_obj_sWallShutter.cpp:35
f32 mAcceleration
Definition d_a_obj_sWallShutter.h:78
f32 mMinAtten
Definition d_a_obj_sWallShutter.h:85
f32 mShakeAmpY
Definition d_a_obj_sWallShutter.h:82
virtual ~daSwShutter_HIO_c()
Definition d_a_obj_sWallShutter.h:74
f32 mMaxAtten
Definition d_a_obj_sWallShutter.h:84
u8 mVibrationStrength
Definition d_a_obj_sWallShutter.h:79
Shutter Wall (Switch)
Definition d_a_obj_sWallShutter.h:16
virtual int Execute(Mtx **)
Definition d_a_obj_sWallShutter.cpp:125
TYPE_e
Definition d_a_obj_sWallShutter.h:18
@ TYPE_ROCKWALL_e
Definition d_a_obj_sWallShutter.h:19
@ TYPE_SUBDAN_e
Definition d_a_obj_sWallShutter.h:20
virtual int CreateHeap()
Definition d_a_obj_sWallShutter.cpp:62
f32 mShakeAtten
Definition d_a_obj_sWallShutter.h:60
int create()
Definition d_a_obj_sWallShutter.cpp:78
u8 field_0x5e4[0x5e8 - 0x5e4]
Definition d_a_obj_sWallShutter.h:66
f32 mShakeAmpY
Definition d_a_obj_sWallShutter.h:59
void init_modeWait()
Definition d_a_obj_sWallShutter.cpp:155
virtual int Draw()
Definition d_a_obj_sWallShutter.cpp:241
f32 mMaxAtten
Definition d_a_obj_sWallShutter.h:61
void init_modeMoveDown()
Definition d_a_obj_sWallShutter.cpp:198
u8 mModelType
Definition d_a_obj_sWallShutter.h:52
int getModelType()
Definition d_a_obj_sWallShutter.h:48
void init_modeMoveDownEnd()
Definition d_a_obj_sWallShutter.cpp:232
void modeMoveDownInit()
Definition d_a_obj_sWallShutter.cpp:191
u32 mEmitterID0
Definition d_a_obj_sWallShutter.h:64
u8 mMode
Definition d_a_obj_sWallShutter.h:53
f32 mMinAtten
Definition d_a_obj_sWallShutter.h:62
f32 mShakeStrength
Definition d_a_obj_sWallShutter.h:57
void modeWait()
Definition d_a_obj_sWallShutter.cpp:160
f32 mShakeAmpZ
Definition d_a_obj_sWallShutter.h:58
request_of_phase_process_class mPhase
Definition d_a_obj_sWallShutter.h:50
void modeMoveDownEnd()
Definition d_a_obj_sWallShutter.cpp:238
int getSwBit()
Definition d_a_obj_sWallShutter.h:47
void init_modeMoveDownInit()
Definition d_a_obj_sWallShutter.cpp:167
void setBaseMtx()
Definition d_a_obj_sWallShutter.cpp:49
virtual int Delete()
Definition d_a_obj_sWallShutter.cpp:252
f32 field_0x5b0
Definition d_a_obj_sWallShutter.h:54
csXyz mShakeRot
Definition d_a_obj_sWallShutter.h:56
u32 mEmitterID1
Definition d_a_obj_sWallShutter.h:65
u8 field_0x5B4[0x5B8 - 0x5B4]
Definition d_a_obj_sWallShutter.h:55
int mCounter
Definition d_a_obj_sWallShutter.h:63
J3DModel * mpModel
Definition d_a_obj_sWallShutter.h:51
void moveMain()
Definition d_a_obj_sWallShutter.cpp:136
MODE_e
Definition d_a_obj_sWallShutter.h:23
@ MODE_MOVE_DOWN_END
Definition d_a_obj_sWallShutter.h:27
@ MODE_MOVE_DOWN_INIT
Definition d_a_obj_sWallShutter.h:25
@ MODE_MOVE_DOWN
Definition d_a_obj_sWallShutter.h:26
@ MODE_WAIT
Definition d_a_obj_sWallShutter.h:24
void modeMoveDown()
Definition d_a_obj_sWallShutter.cpp:211
Definition m_Do_hostIO.h:5
STATIC_ASSERT(sizeof(daSwShutter_c)==0x5e8)
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_ep.cpp:66
Definition d_a_hozelda.cpp:14
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
unsigned char u8
Definition types.h:8