#include <soundList.h>
Public Types | |
| enum | Sample { shooting, unitExplodes, buildingCollapses, moving, menu_ack, conquer_building, repair, refuel, jumpdrive } |
Public Member Functions | |
| Sound * | playSound (Sample snd, int subType=0, bool looping=false, const ASCString &label="") |
| Sound * | getSound (Sample snd, int subType=0, const ASCString &label="", int height=-1) |
| ~SoundList () | |
Static Public Member Functions | |
| static SoundList & | getInstance () |
| static void | init () |
Classes | |
| struct | SoundAssignment |
It uses the singleton design pattern.
Definition at line 35 of file soundList.h.
| enum SoundList::Sample |
| shooting | |
| unitExplodes | |
| buildingCollapses | |
| moving | |
| menu_ack | |
| conquer_building | |
| repair | |
| refuel | |
| jumpdrive |
Definition at line 40 of file soundList.h.
| SoundList::~SoundList | ( | ) |
Definition at line 279 of file soundList.cpp.
| 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().
1.5.1