____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

unitsound.h File Reference

The unit sounds headerfile. More...

#include "upgrade_structs.h"

Go to the source code of this file.

Classes

class  SoundConfig
class  CUnitSound

Functions

void LoadUnitSounds (void)
void MapUnitSounds (void)


Detailed Description

The unit sounds headerfile.

Definition in file unitsound.h.


Function Documentation

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.

Todo:
the sound ranges should be configurable by user with lua.

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


Generated on Sat Feb 21 00:28:22 2009 for Bos Wars by  doxygen 1.5.6