FIFE  2008.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
FIFE::ActionVisual Class Reference

#include <visual.h>

Inheritance diagram for FIFE::ActionVisual:
Collaboration diagram for FIFE::ActionVisual:

List of all members.

Public Member Functions

virtual ~ActionVisual ()
void addAnimation (unsigned int angle, int animation_index)
int getAnimationIndexByAngle (int angle)
void getActionImageAngles (std::vector< int > &angles)

Static Public Member Functions

static ActionVisualcreate (Action *action)

Detailed Description

Action visual contains data that is needed to visualize different actions on screen

Definition at line 164 of file visual.h.


Constructor & Destructor Documentation

Destructor

Definition at line 117 of file visual.cpp.


Member Function Documentation

void FIFE::ActionVisual::addAnimation ( unsigned int  angle,
int  animation_index 
)

Adds new animation with given angle (degrees)

Definition at line 120 of file visual.cpp.

ActionVisual * FIFE::ActionVisual::create ( Action *  action) [static]

Constructs and assigns it to the passed item

Definition at line 108 of file visual.cpp.

void FIFE::ActionVisual::getActionImageAngles ( std::vector< int > &  angles)

Returns list of available angles for this Action

Definition at line 129 of file visual.cpp.

Gets index to animation closest to given angle

Returns:
animation index, -1 if no animations available

Definition at line 124 of file visual.cpp.

References FIFE::getIndexByAngle().


The documentation for this class was generated from the following files: