FIFE
2008.0
|
#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) |
![]() | |
virtual | ~Visual2DGfx () |
void | setTransparency (uint8_t transparency) |
unsigned int | getTransparency () |
void | setVisible (bool visible) |
unsigned int | isVisible () |
Static Public Member Functions | |
static ActionVisual * | create (Action *action) |
Additional Inherited Members | |
![]() | |
Visual2DGfx () |
Action visual contains data that is needed to visualize different actions on screen
|
virtual |
Destructor
Definition at line 117 of file visual.cpp.
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.
|
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.
int FIFE::ActionVisual::getAnimationIndexByAngle | ( | int | angle | ) |
Gets index to animation closest to given angle
Definition at line 124 of file visual.cpp.
References FIFE::getIndexByAngle().