Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_vibration.h
Go to the documentation of this file.
1#ifndef D_D_VIBRATION_H
2#define D_D_VIBRATION_H
3
5
6struct vib_pattern {
7 /* 0x0 */ u16 rounds;
8 /* 0x2 */ u16 length;
9 /* 0x4 */ u32 bits;
10};
11
25
27};
28
46public:
47 enum {
51 };
52
53 /* 8006F268 */ int Run();
54 /* 8006FA24 */ bool StartShock(int i_vibmode, int i_flags, cXyz i_pos);
55 /* 8006FC0C */ bool StartQuake(const u8* i_pattern, int i_rounds, int i_flags, cXyz i_pos);
56 /* 8006FB10 */ bool StartQuake(int i_vibmode, int i_flags, cXyz i_pos);
57 /* 8006FD94 */ int StopQuake(int i_flags);
58 /* 8006FE00 */ void Kill();
59 /* 8006FE5C */ bool CheckQuake();
60 /* 8006FE84 */ void setDefault();
61 /* 8006FF04 */ void Init();
62 /* 8006FF38 */ void Pause();
63 /* 8006FFF8 */ void Remove();
64
65 static const vib_pattern MS_patt[VIBMODE_S_MAX];
66 static const vib_pattern CS_patt[VIBMODE_S_MAX];
67 static const vib_pattern MQ_patt[VIBMODE_Q_MAX];
68 static const vib_pattern CQ_patt[VIBMODE_Q_MAX];
69
70private:
71 class {
72 public:
73 class {
74 public:
75 /* 0x00 */ u32 field_0x0;
76 /* 0x04 */ int mVibMode;
77 /* 0x08 */ u32 mPattern;
78 /* 0x0C */ s32 mLength;
79 /* 0x10 */ s32 mRounds;
80 /* 0x14 */ s32 mFlags;
81 /* 0x18 */ cXyz mPos;
82 /* 0x24 */ s32 mFrame;
84 } /* 0x00 */ mCamera;
85 class {
86 public:
87 class {
88 public:
89 /* 0x00 */ u32 field_0x0;
90 /* 0x04 */ int mVibMode;
91 /* 0x08 */ u32 mPattern;
92 /* 0x0C */ s32 mLength;
93 /* 0x10 */ s32 mRounds;
94 /* 0x14 */ s32 mFrame;
95 /* 0x18 */ s32 mStopFrame;
97 } /* 0x50 */ mMotor;
98 /* 0x88 */ s32 mFrame;
99 /* 0x8C */ s32 mMode;
100}; // Size: 0x90
101
102#endif /* D_D_VIBRATION_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:79
VIBMODE_QUAKE
Definition d_vibration.h:29
@ VIBMODE_Q_POWER4
Definition d_vibration.h:35
@ VIBMODE_Q_POWER8
Definition d_vibration.h:39
@ VIBMODE_Q_POWER2
Definition d_vibration.h:33
@ VIBMODE_Q_POWER1
Definition d_vibration.h:32
@ VIBMODE_Q_POWER3
Definition d_vibration.h:34
@ VIBMODE_Q_POWER6
Definition d_vibration.h:37
@ VIBMODE_Q_POWER5
Definition d_vibration.h:36
@ VIBMODE_Q_CUSTOM
Definition d_vibration.h:31
@ VIBMODE_Q_MAX
Definition d_vibration.h:42
@ VIBMODE_Q_HORSE
Definition d_vibration.h:40
@ VIBMODE_Q_POWER7
Definition d_vibration.h:38
@ VIBMODE_Q_NONE
Definition d_vibration.h:30
VIBMODE_SHOCK
Definition d_vibration.h:12
@ VIBMODE_S_POWER4
Definition d_vibration.h:18
@ VIBMODE_S_POWER6
Definition d_vibration.h:20
@ VIBMODE_S_POWER1
Definition d_vibration.h:15
@ VIBMODE_S_POWER2
Definition d_vibration.h:16
@ VIBMODE_S_DOKUTT
Definition d_vibration.h:23
@ VIBMODE_S_POWER3
Definition d_vibration.h:17
@ VIBMODE_S_MAX
Definition d_vibration.h:26
@ VIBMODE_S_FOR2D
Definition d_vibration.h:24
@ VIBMODE_S_CUSTOM
Definition d_vibration.h:14
@ VIBMODE_S_POWER5
Definition d_vibration.h:19
@ VIBMODE_S_NONE
Definition d_vibration.h:13
@ VIBMODE_S_POWER8
Definition d_vibration.h:22
@ VIBMODE_S_POWER7
Definition d_vibration.h:21
Definition d_a_hozelda.cpp:20
Definition d_a_obj_sekizoa.cpp:295
bool StartQuake(const u8 *i_pattern, int i_rounds, int i_flags, cXyz i_pos)
Definition d_vibration.cpp:330
static const vib_pattern CS_patt[VIBMODE_S_MAX]
Definition d_vibration.h:19
u32 mPattern
Definition d_vibration.h:77
class dVibration_c::@85 mCamera
static const vib_pattern MQ_patt[VIBMODE_Q_MAX]
Definition d_vibration.h:34
s32 mMode
Definition d_vibration.h:99
bool CheckQuake()
Definition d_vibration.cpp:391
void Kill()
Definition d_vibration.cpp:384
int StopQuake(int i_flags)
Definition d_vibration.cpp:363
static const vib_pattern MS_patt[VIBMODE_S_MAX]
Definition d_vibration.h:4
class dVibration_c::@85::@87 mShock
int mVibMode
Definition d_vibration.h:76
void Init()
Definition d_vibration.cpp:428
void setDefault()
Definition d_vibration.cpp:396
s32 mRounds
Definition d_vibration.h:79
s32 mLength
Definition d_vibration.h:78
static const vib_pattern CQ_patt[VIBMODE_Q_MAX]
Definition d_vibration.h:48
s32 mFlags
Definition d_vibration.h:80
bool StartShock(int i_vibmode, int i_flags, cXyz i_pos)
s32 mStopFrame
Definition d_vibration.h:95
class dVibration_c::@86 mMotor
u32 field_0x0
Definition d_vibration.h:75
s32 mFrame
Definition d_vibration.h:82
void Remove()
Definition d_vibration.cpp:458
class dVibration_c::@85::@87 mQuake
cXyz mPos
Definition d_vibration.h:81
@ MODE_WAIT
Definition d_vibration.h:49
@ MODE_RUN
Definition d_vibration.h:50
@ MODE_PAUSE
Definition d_vibration.h:48
int Run()
Definition d_vibration.cpp:58
void Pause()
Definition d_vibration.cpp:434
Definition d_vibration.h:6
u32 bits
Definition d_vibration.h:9
u16 rounds
Definition d_vibration.h:7
u16 length
Definition d_vibration.h:8
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8