____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include "upgrade_structs.h"
Go to the source code of this file.
Classes | |
| class | SoundConfig |
| class | CUnitSound |
Functions | |
| void | LoadUnitSounds (void) |
| void | MapUnitSounds (void) |
Definition in file unitsound.h.
| void LoadUnitSounds | ( | void | ) |
Loads sounds defined in unitsound.c. Should be replaced by ccl loading of sounds.
Load all sounds for units.
Definition at line 48 of file unitsound.cpp.
Referenced by CreateGame(), and LoadModules().
| void MapUnitSounds | ( | void | ) |
Performs the mapping between sound names and CSound* for each unit type. Set ranges for some sounds (infinite range for acknowledge and help sounds).
Map the sounds of all unit-types to the correct sound id. And overwrite the sound ranges.
Definition at line 93 of file unitsound.cpp.
References CUnitSound::Acknowledgement, CUnitSound::Dead, CUnitSound::Harvest, CUnitSound::Help, INFINITE_SOUND_RANGE, MapAnimSounds(), SoundConfig::Name, CUnitSound::Ready, CUnitSound::Repair, CUnitSound::Selected, SetSoundRange(), SoundConfig::Sound, CUnitType::Sound, SoundEnabled(), SoundForName(), and UnitTypes.
Referenced by CreateGame(), and LoadModules().
1.5.6