Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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
 

Enumeration values:
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 278 of file soundList.cpp.


Member Function Documentation

SoundList & SoundList::getInstance  )  [static]
 

Definition at line 60 of file soundList.cpp.

References fatalError().

Referenced by SelfDestruct::destruct(), JumpDrive::jump(), BaseVehicleMovement::moveunitxy(), and BattleSoundPlayer::visit().

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

Definition at line 230 of file soundList.cpp.

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

Referenced by playSound().

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 264 of file soundList.cpp.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:20:53 2008 for Advanced Strategic Command by  doxygen 1.4.2