SoundList Class Reference

This class provides all the sounds required by the games user interface. More...

#include <soundList.h>

List of all members.

Public Types

enum  Sample {
  shooting, unitExplodes, buildingCollapses, moving,
  menu_ack, conquer_building, repair, refuel,
  jumpdrive
}

Public Member Functions

SoundplaySound (Sample snd, int subType=0, bool looping=false, const ASCString &label="")
SoundgetSound (Sample snd, int subType=0, const ASCString &label="", int height=-1)
 ~SoundList ()

Static Public Member Functions

static SoundListgetInstance ()
static void init ()

Classes

struct  SoundAssignment


Detailed Description

This class provides all the sounds required by the games user interface.

It uses the singleton design pattern.

Definition at line 35 of file soundList.h.


Member Enumeration Documentation

enum SoundList::Sample

Enumerator:
shooting 
unitExplodes 
buildingCollapses 
moving 
menu_ack 
conquer_building 
repair 
refuel 
jumpdrive 

Definition at line 40 of file soundList.h.


Constructor & Destructor Documentation

SoundList::~SoundList (  ) 

Definition at line 279 of file soundList.cpp.


Member Function Documentation

SoundList & SoundList::getInstance (  )  [static]

Definition at line 60 of file soundList.cpp.

References fatalError().

Referenced by JumpDriveCommand::go(), DestructUnitCommand::go(), MoveUnit::runAction(), and BattleSoundPlayer::visit().

void SoundList::init (  )  [static]

Definition at line 69 of file soundList.cpp.

References displayLogMessage(), fatalError(), and initialize().

Referenced by loaddata().

Sound * SoundList::playSound ( Sample  snd,
int  subType = 0,
bool  looping = false,
const ASCString label = "" 
)

Definition at line 265 of file soundList.cpp.

References getSound(), Sound::play(), and Sound::playLoop().

Referenced by DestructUnitCommand::go(), MoveUnit::runAction(), and BattleSoundPlayer::visit().

Sound * SoundList::getSound ( Sample  snd,
int  subType = 0,
const ASCString label = "",
int  height = -1 
)

Definition at line 231 of file soundList.cpp.

References copytoLower(), displayLogMessage(), SoundSystem::getInstance(), and heightTags.

Referenced by playSound().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:30 2012 for Advanced Strategic Command by  doxygen 1.5.1