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

       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.cpp File Reference

The unit sounds. More...

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


Detailed Description

The unit sounds.

Definition in file unitsound.cpp.


Function Documentation

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]

static void MapAnimSounds2 ( CAnimation anim  )  [static]

void MapUnitSounds ( void   ) 

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