____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

animation.h File Reference

The animations headerfile. More...

#include <string>
#include <map>

Go to the source code of this file.

Classes

class  CAnimation
class  CAnimations

Defines

#define ANIMATIONS_MAXANIM   1024

Enumerations

enum  AnimationType {
  AnimationNone, AnimationFrame, AnimationExactFrame, AnimationRandomFrame,
  AnimationWait, AnimationRandomWait, AnimationSound, AnimationRandomSound,
  AnimationAttack, AnimationRotate, AnimationRandomRotate, AnimationMove,
  AnimationUnbreakable, AnimationLabel, AnimationGoto, AnimationRandomGoto
}

Functions

CAnimationsAnimationsByIdent (const std::string &ident)
 < Get the animations structure by ident

Variables

CAnimationAnimationsArray [ANIMATIONS_MAXANIM]
int NumAnimations
 Hash table of all the animations.
std::map< std::string,
CAnimations * > 
AnimationMap
 Animation map.


Detailed Description

The animations headerfile.

Definition in file animation.h.


Define Documentation

#define ANIMATIONS_MAXANIM   1024

Definition at line 126 of file animation.h.

Referenced by AddAnimationToArray().


Enumeration Type Documentation

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

Definition at line 40 of file animation.h.


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.

Definition at line 240 of file unittype.cpp.

References AnimationMap.

Referenced by CclDefineAnimations(), and CclDefineUnitType().


Variable Documentation

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

Animation map.

Definition at line 70 of file script_unittype.cpp.

Referenced by AnimationsByIdent(), CclDefineAnimations(), and CleanUnitTypes().

CAnimation* AnimationsArray[ANIMATIONS_MAXANIM]

Definition at line 67 of file script_unittype.cpp.

Referenced by CclUnit(), CleanUnitTypes(), and SaveUnit().

Hash table of all the animations.

Definition at line 68 of file script_unittype.cpp.

Referenced by AddAnimationToArray(), CleanUnitTypes(), and SaveUnit().


Generated on Sat Feb 21 00:28:15 2009 for Bos Wars by  doxygen 1.5.6