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

src/include/animation.h File Reference

#include <string>
#include <map>

Go to the source code of this file.


Classes

class  CAnimation
class  CAnimations

animation.h - The animations headerfile.

#define ANIMATIONS_MAXANIM   1024
#define ANIMATIONS_DEATHTYPES   40
enum  AnimationType {
  AnimationNone, AnimationFrame, AnimationExactFrame, AnimationWait,
  AnimationRandomWait, AnimationSound, AnimationRandomSound, AnimationAttack,
  AnimationRotate, AnimationRandomRotate, AnimationMove, AnimationUnbreakable,
  AnimationLabel, AnimationGoto, AnimationRandomGoto, AnimationSpawnMissile
}
std::string ExtraDeathTypes [ANIMATIONS_DEATHTYPES]
CAnimationAnimationsArray [ANIMATIONS_MAXANIM]
int NumAnimations
std::map< std::string,
CAnimations * > 
AnimationMap
 Hash table of all the animations.
CAnimationsAnimationsByIdent (const std::string &ident)
 Get the animations structure by ident.

Define Documentation

#define ANIMATIONS_DEATHTYPES   40

#define ANIMATIONS_MAXANIM   1024


Enumeration Type Documentation

Enumerator:
AnimationNone 
AnimationFrame 
AnimationExactFrame 
AnimationWait 
AnimationRandomWait 
AnimationSound 
AnimationRandomSound 
AnimationAttack 
AnimationRotate 
AnimationRandomRotate 
AnimationMove 
AnimationUnbreakable 
AnimationLabel 
AnimationGoto 
AnimationRandomGoto 
AnimationSpawnMissile 


Function Documentation

CAnimations* AnimationsByIdent ( const std::string &  ident  ) 

Get the animations structure by ident.

Get the animations structure by ident.

Parameters:
ident Identifier for the animation.
Returns:
Pointer to the animation structure.


Variable Documentation

std::map<std::string, CAnimations *> AnimationMap

Hash table of all the animations.

CAnimation* AnimationsArray[ANIMATIONS_MAXANIM]

std::string ExtraDeathTypes[ANIMATIONS_DEATHTYPES]

Default names for the extra death types.

Default names for the resources.

(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.