#include <visual.h>
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 ActionVisual * | create (Action *action) |
Action visual contains data that is needed to visualize different actions on screen
Definition at line 198 of file visual.h.
FIFE::ActionVisual::~ActionVisual | ( | ) | [virtual] |
Destructor
Definition at line 140 of file visual.cpp.
void FIFE::ActionVisual::addAnimation | ( | unsigned int | angle, | |
int | animation_index | |||
) |
Adds new animation with given angle (degrees)
Definition at line 143 of file visual.cpp.
ActionVisual * FIFE::ActionVisual::create | ( | Action * | action | ) | [static] |
Constructs and assigns it to the passed item
Definition at line 131 of file visual.cpp.
void FIFE::ActionVisual::getActionImageAngles | ( | std::vector< int > & | angles | ) |
Returns list of available angles for this Action
Definition at line 152 of file visual.cpp.
int FIFE::ActionVisual::getAnimationIndexByAngle | ( | int | angle | ) |
Gets index to animation closest to given angle
Definition at line 147 of file visual.cpp.
References FIFE::getIndexByAngle().