Public Member Functions | |
SoundMaker (ISoundManager *sound, const NodeDefManager *ndef) | |
void | playPlayerStep () |
void | playPlayerJump () |
void | registerReceiver (MtEventManager *mgr) |
void | step (float dtime) |
Static Public Member Functions | |
static void | viewBobbingStep (MtEvent *e, void *data) |
static void | playerRegainGround (MtEvent *e, void *data) |
static void | playerJump (MtEvent *e, void *data) |
static void | cameraPunchLeft (MtEvent *e, void *data) |
static void | cameraPunchRight (MtEvent *e, void *data) |
static void | nodeDug (MtEvent *e, void *data) |
static void | playerDamage (MtEvent *e, void *data) |
static void | playerFallingDamage (MtEvent *e, void *data) |
Public Attributes | |
bool | makes_footstep_sound |
float | m_player_step_timer |
float | m_player_jump_timer |
SimpleSoundSpec | m_player_step_sound |
SimpleSoundSpec | m_player_leftpunch_sound |
SimpleSoundSpec | m_player_rightpunch_sound |
Private Attributes | |
ISoundManager * | m_sound |
const NodeDefManager * | m_ndef |
|
inline |
|
inlinestatic |
References m_player_leftpunch_sound, m_sound, and ISoundManager::playSound().
Referenced by registerReceiver().
|
inlinestatic |
References m_player_rightpunch_sound, m_sound, and ISoundManager::playSound().
Referenced by registerReceiver().
|
inlinestatic |
References NodeDefManager::get(), m_ndef, m_sound, NodeDugEvent::n, ISoundManager::playSound(), and ContentFeatures::sound_dug.
Referenced by registerReceiver().
|
inlinestatic |
References m_sound, and ISoundManager::playSound().
Referenced by registerReceiver().
|
inlinestatic |
References m_sound, and ISoundManager::playSound().
Referenced by registerReceiver().
|
inlinestatic |
References playPlayerJump().
Referenced by registerReceiver().
|
inlinestatic |
References playPlayerStep().
Referenced by registerReceiver().
|
inline |
References m_player_jump_timer, m_sound, and ISoundManager::playSound().
Referenced by playerJump().
|
inline |
References SimpleSoundSpec::exists(), m_player_step_sound, m_player_step_timer, m_sound, makes_footstep_sound, and ISoundManager::playSound().
Referenced by playerRegainGround(), and viewBobbingStep().
|
inline |
References MtEvent::CAMERA_PUNCH_LEFT, MtEvent::CAMERA_PUNCH_RIGHT, cameraPunchLeft(), cameraPunchRight(), MtEvent::NODE_DUG, nodeDug(), MtEvent::PLAYER_DAMAGE, MtEvent::PLAYER_FALLING_DAMAGE, MtEvent::PLAYER_JUMP, MtEvent::PLAYER_REGAIN_GROUND, playerDamage(), playerFallingDamage(), playerJump(), playerRegainGround(), MtEventManager::reg(), MtEvent::VIEW_BOBBING_STEP, and viewBobbingStep().
Referenced by Game::initSound().
|
inline |
References m_player_jump_timer, and m_player_step_timer.
Referenced by Game::updateSound().
|
inlinestatic |
References playPlayerStep().
Referenced by registerReceiver().
|
private |
Referenced by nodeDug().
float SoundMaker::m_player_jump_timer |
Referenced by playPlayerJump(), and step().
SimpleSoundSpec SoundMaker::m_player_leftpunch_sound |
Referenced by cameraPunchLeft(), Game::handleDigging(), and Game::processPlayerInteraction().
SimpleSoundSpec SoundMaker::m_player_rightpunch_sound |
Referenced by cameraPunchRight(), Game::handlePointingAtNode(), and Game::nodePlacement().
SimpleSoundSpec SoundMaker::m_player_step_sound |
Referenced by playPlayerStep(), and Game::updateSound().
float SoundMaker::m_player_step_timer |
Referenced by playPlayerStep(), and step().
|
private |
Referenced by cameraPunchLeft(), cameraPunchRight(), nodeDug(), playerDamage(), playerFallingDamage(), playPlayerJump(), and playPlayerStep().
bool SoundMaker::makes_footstep_sound |
Referenced by playPlayerStep(), and Game::updateSound().