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

unitsound.h
Go to the documentation of this file.
1 // _________ __ __
2 // / _____// |_____________ _/ |______ ____ __ __ ______
3 // \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
4 // / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ |
5 // /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
6 // \/ \/ \//_____/ \/
7 // ______________________ ______________________
8 // T H E W A R B E G I N S
9 // Stratagus - A free fantasy real time strategy game engine
10 //
12 //
13 // (c) Copyright 1999-2005 by Lutz Sammer, Fabrice Rossi,
14 // and Jimmy Salmon
15 //
16 // This program is free software; you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation; only version 2 of the License.
19 //
20 // This program is distributed in the hope that it will be useful,
21 // but WITHOUT ANY WARRANTY; without even the implied warranty of
22 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 // GNU General Public License for more details.
24 //
25 // You should have received a copy of the GNU General Public License
26 // along with this program; if not, write to the Free Software
27 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
28 // 02111-1307, USA.
29 //
30 
31 #ifndef __UNITSOUND_H__
32 #define __UNITSOUND_H__
33 
35 
36 /*----------------------------------------------------------------------------
37 -- Includes
38 ----------------------------------------------------------------------------*/
39 
40 #ifndef __UPGRADE_STRUCTS_H__
41 #include "upgrade_structs.h"
42 #endif
43 
44 #define ANIMATIONS_DEATHTYPES 40
45 /*----------------------------------------------------------------------------
46 -- Declarations
47 ----------------------------------------------------------------------------*/
48 
49 class CSound;
50 
55 {
56 public:
57  SoundConfig() : Sound(NULL) {}
58  SoundConfig(std::string name) : Name(name), Sound(NULL) {}
59 
60  bool MapSound();
61  void SetSoundRange(unsigned char range);
62 
63 public:
64  std::string Name;
66 };
67 
74 {
75 public:
86 };
87 
88 /*----------------------------------------------------------------------------
89 -- Variables
90 ----------------------------------------------------------------------------*/
91 
92 /*----------------------------------------------------------------------------
93 -- Functions
94 ----------------------------------------------------------------------------*/
95 
100 extern void LoadUnitSounds();
101 
106 extern void MapUnitSounds();
107 
109 
110 #endif // !__UNITSOUND_H__
MaxCosts
@ MaxCosts
resource 6
Definition: upgrade_structs.h:70
CUnitSound::Repair
SoundConfig Repair
unit training... ready
Definition: unitsound.h:81
SoundConfig::SoundConfig
SoundConfig(std::string name)
Definition: unitsound.h:58
CUnitSound
Definition: unitsound.h:73
CSound
Definition: sound.h:99
LoadUnitSounds
void LoadUnitSounds()
Definition: unitsound.cpp:80
CUnitSound::Harvest
SoundConfig Harvest[MaxCosts]
unit repairing
Definition: unitsound.h:82
SoundConfig
Definition: unitsound.h:54
CUnitSound::Help
SoundConfig Help
unit harvesting
Definition: unitsound.h:83
CUnitSound::Dead
SoundConfig Dead[ANIMATIONS_DEATHTYPES+1]
unit has completed work
Definition: unitsound.h:85
SoundConfig::SetSoundRange
void SetSoundRange(unsigned char range)
Definition: unitsound.cpp:70
ANIMATIONS_DEATHTYPES
#define ANIMATIONS_DEATHTYPES
Definition: unitsound.h:44
SoundConfig::Name
std::string Name
Definition: unitsound.h:64
SoundConfig::SoundConfig
SoundConfig()
Definition: unitsound.h:57
CUnitSound::Build
SoundConfig Build
attack confirm command
Definition: unitsound.h:79
CUnitSound::Attack
SoundConfig Attack
acknowledge of use command
Definition: unitsound.h:78
CUnitSound::WorkComplete
SoundConfig WorkComplete
unit is attacked
Definition: unitsound.h:84
CUnitSound::Selected
SoundConfig Selected
Definition: unitsound.h:76
SoundConfig::MapSound
bool MapSound()
Definition: unitsound.cpp:62
SoundConfig::Sound
CSound * Sound
config sound name
Definition: unitsound.h:65
upgrade_structs.h
MapUnitSounds
void MapUnitSounds()
Definition: unitsound.cpp:143
CUnitSound::Ready
SoundConfig Ready
build confirm command
Definition: unitsound.h:80
CUnitSound::Acknowledgement
SoundConfig Acknowledgement
selected by user
Definition: unitsound.h:77
(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.