Advanced Strategic Command
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
SoundList Class Reference

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

#include <soundList.h>

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 ()
 

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

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
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().

void SoundList::init ( void  )
static

Definition at line 69 of file soundList.cpp.

References displayLogMessage(), and fatalError().

Referenced by loaddata().

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

The documentation for this class was generated from the following files: