Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

SoundSystem Class Reference

The SoundSystem is a super-high level interface for playing sounds. More...

#include <SoundSystem.h>

List of all members.

Public Methods

 SoundSystem ()
 Installs the sound drivers and loads all sound drivers.

 ~SoundSystem ()
 Shuts down the SoundSystem, and uninitalizes DirectSound.

void playExplosion ()
 Plays an explosion sound.

void playHurtSound ()
 Plays a sound for when a player gets hurt.

void playDeathSound ()
 Plays a sound for when a player dies.

void playPowerupRespawnSound ()
 Plays a sound for when a Powerup is about to respawn.

void playPowerupPickupSound ()
 Plays a sound for when a Powerup has been picked up.

void playBombarrheaVoice ()
 Plays the voice for a bombarrhea Virus.

void playFrailtyVoice ()
 Plays the voice for a frailty Virus.

void playShrinkVoice ()
 Plays the voice for a shrink Virus.

void playSlowdownVoice ()
 Plays the voice for a slowdown Virus.

void playSlowBombsVoice ()
 Plays the voice for a slow bombs Virus.

void playBombConstipationVoice ()
 Plays the voice for a constipation Virus.

SoundToken startHomingBombSound ()
 Starts the homing bomb sound.

void stopHomingBombSound (SoundToken &tok)
 Called when a homing bomb dissapears.


Static Public Methods

bool isTokenValid (SoundToken tok)
 Returns true if the SoundToken is a valid token.

SoundToken getInvalidToken ()
 Returns a SoundToken that is invalid (has an invalid value).


Detailed Description

The SoundSystem is a super-high level interface for playing sounds.

It is the interface between the CSoundManager library that Jason Winnebeck located on codeproject.com. This interface is not abstract, and is specific to Super IsoBomb.


Constructor & Destructor Documentation

SoundSystem::SoundSystem  
 

Installs the sound drivers and loads all sound drivers.

Throws an IsoException on error. The sound files are loaded from the "sfx" directory.

The global g_win must be properly initialized.

SoundSystem::~SoundSystem  
 

Shuts down the SoundSystem, and uninitalizes DirectSound.


Member Function Documentation

SoundToken SoundSystem::getInvalidToken   [static]
 

Returns a SoundToken that is invalid (has an invalid value).

This can be considered the token equivalent of a "NULL" pointer.

bool SoundSystem::isTokenValid SoundToken    tok [static]
 

Returns true if the SoundToken is a valid token.

void SoundSystem::playBombarrheaVoice  
 

Plays the voice for a bombarrhea Virus.

void SoundSystem::playBombConstipationVoice  
 

Plays the voice for a constipation Virus.

void SoundSystem::playDeathSound  
 

Plays a sound for when a player dies.

void SoundSystem::playExplosion  
 

Plays an explosion sound.

void SoundSystem::playFrailtyVoice  
 

Plays the voice for a frailty Virus.

void SoundSystem::playHurtSound  
 

Plays a sound for when a player gets hurt.

void SoundSystem::playPowerupPickupSound  
 

Plays a sound for when a Powerup has been picked up.

void SoundSystem::playPowerupRespawnSound  
 

Plays a sound for when a Powerup is about to respawn.

void SoundSystem::playShrinkVoice  
 

Plays the voice for a shrink Virus.

void SoundSystem::playSlowBombsVoice  
 

Plays the voice for a slow bombs Virus.

void SoundSystem::playSlowdownVoice  
 

Plays the voice for a slowdown Virus.

SoundToken SoundSystem::startHomingBombSound  
 

Starts the homing bomb sound.

Should be started when the homing bomb appears, and stopped when the homing bomb dissapears.

If no sounds are left to be used, an invalid token is returned, and no additional sound is played. For ease of use, you need not check if the returned token is valid, since the stopHomingBombSound method will be able to handle the returned token that is invalid.

void SoundSystem::stopHomingBombSound SoundToken   tok
 

Called when a homing bomb dissapears.

Changes the passed in token to an invalid token. If the passed token is invalid, this method has no effect.

See also:
startHomingBombSound


The documentation for this class was generated from the following files:
Generated on Tue Mar 4 02:29:26 2003 for SuperIsoBomb by doxygen1.2.18