Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
dVibration_c Class Reference

#include <d_vibration.h>

+ Collaboration diagram for dVibration_c:

Public Types

enum  { MODE_PAUSE = -1 , MODE_WAIT , MODE_RUN }
 

Public Member Functions

void StartShock (int, int, cXyz)
 
int Run ()
 
bool StartShock (int i_vibmode, int i_flags, cXyz i_pos)
 
bool StartQuake (const u8 *i_pattern, int i_rounds, int i_flags, cXyz i_pos)
 
bool StartQuake (int i_vibmode, int i_flags, cXyz i_pos)
 
int StopQuake (int i_flags)
 
void Kill ()
 
bool CheckQuake ()
 
void setDefault ()
 
void Init ()
 
void Pause ()
 
void Remove ()
 

Static Public Attributes

static const vib_pattern MS_patt [VIBMODE_S_MAX]
 
static const vib_pattern CS_patt [VIBMODE_S_MAX]
 
static const vib_pattern MQ_patt [VIBMODE_Q_MAX]
 
static const vib_pattern CQ_patt [VIBMODE_Q_MAX]
 

Private Attributes

class { 
 
   class { 
 
      u32   field_0x0 
 
      int   mVibMode 
 
      u32   mPattern 
 
      s32   mLength 
 
      s32   mRounds 
 
      s32   mFlags 
 
      cXyz   mPos 
 
      s32   mFrame 
 
   }   mShock 
 
   class { 
 
      u32   field_0x0 
 
      int   mVibMode 
 
      u32   mPattern 
 
      s32   mLength 
 
      s32   mRounds 
 
      s32   mFlags 
 
      cXyz   mPos 
 
      s32   mFrame 
 
   }   mQuake 
 
mCamera 
 
class { 
 
   class { 
 
      u32   field_0x0 
 
      int   mVibMode 
 
      u32   mPattern 
 
      s32   mLength 
 
      s32   mRounds 
 
      s32   mFrame 
 
      s32   mStopFrame 
 
   }   mShock 
 
   class { 
 
      u32   field_0x0 
 
      int   mVibMode 
 
      u32   mPattern 
 
      s32   mLength 
 
      s32   mRounds 
 
      s32   mFrame 
 
      s32   mStopFrame 
 
   }   mQuake 
 
mMotor 
 
s32 mMode
 

Member Enumeration Documentation

◆ anonymous enum

Enumerator
MODE_PAUSE 
MODE_WAIT 
MODE_RUN 

Member Function Documentation

◆ CheckQuake()

bool dVibration_c::CheckQuake ( )

◆ Init()

void dVibration_c::Init ( )

◆ Kill()

void dVibration_c::Kill ( )

◆ Pause()

void dVibration_c::Pause ( )

◆ Remove()

void dVibration_c::Remove ( )

◆ Run()

int dVibration_c::Run ( )

◆ setDefault()

void dVibration_c::setDefault ( )

◆ StartQuake() [1/2]

bool dVibration_c::StartQuake ( const u8 i_pattern,
int  i_rounds,
int  i_flags,
cXyz  i_pos 
)

◆ StartQuake() [2/2]

bool dVibration_c::StartQuake ( int  i_vibmode,
int  i_flags,
cXyz  i_pos 
)

◆ StartShock() [1/2]

bool dVibration_c::StartShock ( int  i_vibmode,
int  i_flags,
cXyz  i_pos 
)

◆ StartShock() [2/2]

bool dVibration_c::StartShock ( int  i_vibmode,
int  i_flags,
cXyz  i_pos 
)

◆ StopQuake()

int dVibration_c::StopQuake ( int  i_flags)

Member Data Documentation

◆ CQ_patt

const vib_pattern dVibration_c::CQ_patt
static
Initial value:
= {
{0, 0, 0x00000000},
{1, 32, 0x10202020},
{1, 32, 0x42104208},
{2, 32, 0x22222222},
{2, 32, 0x22492249},
{3, 32, 0x52525252},
{3, 32, 0x4A94AA95},
{4, 32, 0x36555655},
{4, 32, 0x6B6D6B6D},
{0, 27, 0x20201000},
}

◆ CS_patt

const vib_pattern dVibration_c::CS_patt
static
Initial value:
= {
{0, 0, 0x00000000},
{0, 3, 0xC0000000},
{0, 4, 0xE0000000},
{0, 6, 0xE8000000},
{0, 7, 0xEC000000},
{0, 8, 0xF6000000},
{0, 9, 0xFB000000},
{0, 10, 0xF6800000},
{0, 11, 0xFB400000},
{0, 8, 0xC2000000},
{0, 2, 0xC0000000},
}

◆ field_0x0

u32 dVibration_c::field_0x0

◆ [class]

class { ... } dVibration_c::mCamera

◆ mFlags

s32 dVibration_c::mFlags

◆ mFrame

s32 dVibration_c::mFrame

◆ mLength

s32 dVibration_c::mLength

◆ mMode

s32 dVibration_c::mMode
private

◆ [class]

class { ... } dVibration_c::mMotor

◆ mPattern

u32 dVibration_c::mPattern

◆ mPos

cXyz dVibration_c::mPos

◆ MQ_patt

const vib_pattern dVibration_c::MQ_patt
static
Initial value:
= {
{0, 0, 0x00000000},
{1, 32, 0x10202020},
{1, 32, 0x42104208},
{2, 32, 0x22222222},
{2, 32, 0x22492249},
{3, 32, 0x52525252},
{3, 32, 0x4A94AA95},
{4, 32, 0x36555655},
{4, 32, 0x6B6D6B6D},
{1, 27, 0x20201000},
}

◆ [class] [1/2]

class { ... } dVibration_c::mQuake

◆ [class] [2/2]

class { ... } dVibration_c::mQuake

◆ mRounds

s32 dVibration_c::mRounds

◆ MS_patt

const vib_pattern dVibration_c::MS_patt
static
Initial value:
= {
{0, 0, 0x00000000},
{0, 3, 0xC0000000},
{0, 4, 0xE0000000},
{0, 6, 0xE8000000},
{0, 7, 0xEC000000},
{0, 8, 0xF6000000},
{0, 9, 0xFB000000},
{0, 10, 0xF6800000},
{0, 11, 0xFB400000},
{0, 8, 0xC2000000},
{0, 2, 0xC0000000},
}

◆ [class] [1/2]

class { ... } dVibration_c::mShock

◆ [class] [2/2]

class { ... } dVibration_c::mShock

◆ mStopFrame

s32 dVibration_c::mStopFrame

◆ mVibMode

int dVibration_c::mVibMode

The documentation for this class was generated from the following files: