_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
30 #ifndef __ANIMATIONS_H__
31 #define __ANIMATIONS_H__
39 #define ANIMATIONS_DEATHTYPES 40
101 virtual void Action(
CUnit &unit,
int &move,
int scale)
const = 0;
102 virtual void Init(
const char *s, lua_State *l = NULL) {}
127 for (
int i = 0; i <
MaxCosts; ++i) {
186 #endif // !__ANIMATIONS_H__
@ modSub
Addition.
Definition: animation.h:84
CAnimation * Death[ANIMATIONS_DEATHTYPES+1]
Definition: animation.h:149
@ AnimationRandomWait
Definition: animation.h:59
@ MaxCosts
resource 6
Definition: upgrade_structs.h:70
static void LoadUnitAnim(lua_State *l, CUnit &unit, int luaIndex)
Definition: animation.cpp:466
@ AnimationSpawnMissile
Definition: animation.h:70
int UnitShowAnimation(CUnit &unit, const CAnimation *anim)
Handle the animation of a unit.
Definition: animation.cpp:108
CAnimation * RangedAttack
Definition: animation.h:146
static void SaveUnitAnim(CFile &file, const CUnit &unit)
Definition: animation.cpp:425
CAnimation * SpellCast
Definition: animation.h:154
@ modAnd
Modulo.
Definition: animation.h:88
@ AnimationRandomSound
Definition: animation.h:61
CAnimations()
Definition: animation.h:111
@ AnimationWait
Definition: animation.h:58
@ AnimationSpawnUnit
Definition: animation.h:71
CAnimations * AnimationsByIdent(const std::string &ident)
Get the animations structure by ident.
Definition: animation.cpp:389
CAnimation * Harvest[MaxCosts]
Definition: animation.h:150
@ modDiv
Multiplication.
Definition: animation.h:86
CAnimation * Next
Definition: animation.h:105
@ AnimationLabel
Definition: animation.h:67
@ AnimationAttack
Definition: animation.h:62
@ modXor
Bitwise OR.
Definition: animation.h:90
@ modNot
Bitwise XOR.
Definition: animation.h:91
int ParseAnimInt(const CUnit &unit, const char *parseint)
Definition: animation.cpp:140
int UnitShowAnimationScaled(CUnit &unit, const CAnimation *anim, int scale)
Handle the animation of a unit.
Definition: animation.cpp:345
@ AnimationFrame
Definition: animation.h:56
virtual void Action(CUnit &unit, int &move, int scale) const =0
@ modMul
Subtraction.
Definition: animation.h:85
@ AnimationNone
Definition: animation.h:55
@ AnimationIfVar
Definition: animation.h:72
std::string ExtraDeathTypes[ANIMATIONS_DEATHTYPES]
Definition: unittype.cpp:494
@ AnimationRandomRotate
Definition: animation.h:64
@ modSet
Definition: animation.h:82
@ AnimationGoto
Definition: animation.h:68
@ AnimationRotate
Definition: animation.h:63
@ AnimationRandomGoto
Definition: animation.h:69
virtual ~CAnimation()
Definition: animation.h:99
CAnimation * Move
Definition: animation.h:151
virtual void Init(const char *s, lua_State *l=NULL)
Definition: animation.h:102
@ AnimationUnbreakable
Definition: animation.h:66
AnimationType
Definition: animation.h:54
Definition: animation.h:108
@ AnimationMove
Definition: animation.h:65
CAnimation * Attack
Definition: animation.h:145
CAnimation * Train
Definition: animation.h:157
CAnimation * Repair
Definition: animation.h:152
Definition: animation.h:94
@ AnimationSetVar
Definition: animation.h:73
@ AnimationDie
Definition: animation.h:75
@ AnimationExactFrame
Definition: animation.h:57
SetVar_ModifyTypes
Definition: animation.h:81
bool hasDeathAnimation
Definition: animation.h:148
@ modMod
Division.
Definition: animation.h:87
@ AnimationWiggle
Definition: animation.h:77
@ AnimationSetPlayerVar
Definition: animation.h:74
~CAnimations()
Definition: animation.h:119
void FindLabelLater(CAnimation **anim, const std::string &name)
Definition: animation.cpp:551
CAnimation * Upgrade
Definition: animation.h:158
CAnimation * Research
Definition: animation.h:153
void AnimationCclRegister()
Definition: animation.cpp:764
int ParseAnimFlags(const CUnit &unit, const char *parseflag)
Definition: animation.cpp:283
@ modOr
Bitwise AND.
Definition: animation.h:89
static void LoadWaitUnitAnim(lua_State *l, CUnit &unit, int luaIndex)
Definition: animation.cpp:494
const AnimationType Type
Definition: animation.h:104
CAnimation * Still
Definition: animation.h:156
void FreeAnimations()
Definition: animation.cpp:398
@ modAdd
Set value to this.
Definition: animation.h:83
CAnimation(AnimationType type)
Definition: animation.h:97
@ AnimationLuaCallback
Definition: animation.h:76
CAnimation * Start
Definition: animation.h:155
The big unit structure.
Definition: unit.h:135
CAnimation * Build
Definition: animation.h:147
@ AnimationSound
Definition: animation.h:60
#define ANIMATIONS_DEATHTYPES
Definition: animation.h:39
(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.