____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 "stratagus.h"
#include "sound.h"
#include "sound_server.h"
#include "unittype.h"
#include "animation.h"
Go to the source code of this file.
Functions | |
| void | LoadUnitSounds (void) |
| static void | MapAnimSounds2 (CAnimation *anim) |
| static void | MapAnimSounds (CUnitType *type) |
| void | MapUnitSounds (void) |
Definition in file unitsound.cpp.
| void LoadUnitSounds | ( | void | ) |
Load all sounds for units.
Definition at line 48 of file unitsound.cpp.
Referenced by CreateGame(), and LoadModules().
| static void MapAnimSounds | ( | CUnitType * | type | ) | [static] |
Map animation sounds for a unit type
Definition at line 72 of file unitsound.cpp.
References CUnitType::Animations, CAnimations::Attack, CAnimations::Death, CAnimations::Harvest, MapAnimSounds2(), CAnimations::Move, CAnimations::Repair, CAnimations::Start, CAnimations::Still, and CAnimations::Train.
Referenced by MapUnitSounds().
| static void MapAnimSounds2 | ( | CAnimation * | anim | ) | [static] |
Map animation sounds
Definition at line 55 of file unitsound.cpp.
References AnimationRandomSound, AnimationSound, CAnimation::D, CAnimation::Next, CAnimation::RandomSound, CSound::Sound, CAnimation::Sound, SoundForName(), and CAnimation::Type.
Referenced by MapAnimSounds().
| void MapUnitSounds | ( | void | ) |
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