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

Sound Class Reference

#include <sound.h>

List of all members.

Public Methods

 Sound (int n=32)
 ~Sound ()

Static Public Methods

void PlaySample (sound s)
void PlayTheme (int loops)
void StopTheme ()
void LoadTheme (string path)
bool ThemeIsPlaying ()
bool SampleIsPlaying (sound s)

Private Attributes

int numchannels

Static Private Attributes

vector< Sample * > sEffects
Musictheme


Constructor & Destructor Documentation

Sound::Sound int    n = 32
 

Definition at line 16 of file sound.cpp.

References BEAR_WALK_SOUND_1, GUN_SHOT, sEffects, theme, THEME_MUSIC, UFO_SOUND, and WALK_SOUND.

Sound::~Sound  
 

Definition at line 45 of file sound.cpp.

References sEffects, and theme.


Member Function Documentation

void Sound::LoadTheme string    path [static]
 

Definition at line 80 of file sound.cpp.

References PlayTheme(), StopTheme(), theme, and ThemeIsPlaying().

Referenced by Game::step().

void Sound::PlaySample sound    s [static]
 

Definition at line 63 of file sound.cpp.

References BEAR_WALK, GUNSHOT, sEffects, sound, UFO_NOISE, and WALKING.

Referenced by Game::GameLoop(), and Game::step().

void Sound::PlayTheme int    loops [static]
 

Definition at line 72 of file sound.cpp.

References Music::Play(), and theme.

Referenced by Game::Game(), LoadTheme(), and Game::step().

bool Sound::SampleIsPlaying sound    s [static]
 

Definition at line 91 of file sound.cpp.

References BEAR_WALK, GUNSHOT, sEffects, sound, UFO_NOISE, and WALKING.

Referenced by Game::GameLoop().

void Sound::StopTheme   [static]
 

Definition at line 76 of file sound.cpp.

References Music::Stop(), and theme.

Referenced by LoadTheme(), and Game::step().

bool Sound::ThemeIsPlaying   [static]
 

Definition at line 87 of file sound.cpp.

References Music::IsPlaying(), and theme.

Referenced by LoadTheme(), and Game::step().


Member Data Documentation

int Sound::numchannels [private]
 

Definition at line 42 of file sound.h.

vector< Sample * > Sound::sEffects [static, private]
 

Definition at line 13 of file sound.cpp.

Referenced by PlaySample(), SampleIsPlaying(), Sound(), and ~Sound().

Music * Sound::theme [static, private]
 

Definition at line 14 of file sound.cpp.

Referenced by LoadTheme(), PlayTheme(), Sound(), StopTheme(), ThemeIsPlaying(), and ~Sound().


The documentation for this class was generated from the following files:
Generated on Sun Dec 8 12:02:22 2002 for nnc by doxygen1.3-rc1