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

unitsound.cpp File Reference
#include "stratagus.h"
#include "unitsound.h"
#include "animation/animation_randomsound.h"
#include "animation/animation_sound.h"
#include "map.h"
#include "player.h"
#include "sound.h"
#include "sound_server.h"
#include "unit.h"
#include "unittype.h"
#include "video.h"

Functions

unitsound.cpp - The unit sounds.
void LoadUnitSounds ()
 
static void MapAnimSound (CAnimation &anim)
 
static void MapAnimSounds2 (CAnimation *anim)
 
static void MapAnimSounds (CUnitType &type)
 
void MapUnitSounds ()
 

Function Documentation

◆ LoadUnitSounds()

void LoadUnitSounds ( )

Load all sounds for units.

◆ MapAnimSound()

static void MapAnimSound ( CAnimation anim)
static

◆ MapAnimSounds()

static void MapAnimSounds ( CUnitType type)
static

Map animation sounds for a unit type

◆ MapAnimSounds2()

static void MapAnimSounds2 ( CAnimation anim)
static

Map animation sounds

◆ MapUnitSounds()

void MapUnitSounds ( )

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.