_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Classes
unitsound.h File Reference
#include "upgrade_structs.h"

Go to the source code of this file.

Classes

class  SoundConfig
 
class  CUnitSound
 

unitsound.h - The unit sounds headerfile.

#define ANIMATIONS_DEATHTYPES   40
 
void LoadUnitSounds ()
 
void MapUnitSounds ()
 

Macro Definition Documentation

◆ ANIMATIONS_DEATHTYPES

#define ANIMATIONS_DEATHTYPES   40

Function Documentation

◆ LoadUnitSounds()

void LoadUnitSounds ( )

Loads sounds defined in unitsound.c. Should be replaced by ccl loading of sounds.

Load all sounds for units.

◆ MapUnitSounds()

void MapUnitSounds ( )

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 CCL.
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.