FIFE
|
Action visual contains data that is needed to visualize different actions on screen. More...
#include <visual.h>
Public Member Functions | |
virtual | ~ActionVisual () |
Destructor. More... | |
void | addAnimation (uint32_t angle, AnimationPtr animationptr) |
Adds new animation with given angle (degrees) More... | |
AnimationPtr | getAnimationByAngle (int32_t angle) |
Gets index to animation closest to given angle. More... | |
void | getActionImageAngles (std::vector< int32_t > &angles) |
Returns list of available angles for this Action. More... | |
![]() | |
virtual | ~Visual2DGfx () |
Destructor. More... | |
![]() | |
virtual | ~IVisual () |
Static Public Member Functions | |
static ActionVisual * | create (Action *action) |
Constructs and assigns it to the passed item. More... | |
Private Types | |
typedef std::map< uint32_t, AnimationPtr > | AngleAnimationMap |
Private Member Functions | |
ActionVisual () | |
Constructor. More... | |
Private Attributes | |
AngleAnimationMap | m_animation_map |
type_angle2id | m_map |
Additional Inherited Members | |
![]() | |
Visual2DGfx () | |
Constructor. More... | |
Action visual contains data that is needed to visualize different actions on screen.
|
private |
|
virtual |
Destructor.
Definition at line 156 of file visual.cpp.
|
private |
Constructor.
Definition at line 144 of file visual.cpp.
Referenced by create().
void FIFE::ActionVisual::addAnimation | ( | uint32_t | angle, |
AnimationPtr | animationptr | ||
) |
Adds new animation with given angle (degrees)
Definition at line 159 of file visual.cpp.
References m_animation_map, and m_map.
Referenced by FIFE::ObjectLoader::load().
|
static |
Constructs and assigns it to the passed item.
Definition at line 147 of file visual.cpp.
References ActionVisual(), FIFE::Action::adoptVisual(), and FIFE::Action::getVisual().
Referenced by FIFE::ObjectLoader::load().
void FIFE::ActionVisual::getActionImageAngles | ( | std::vector< int32_t > & | angles | ) |
Returns list of available angles for this Action.
Definition at line 169 of file visual.cpp.
References m_animation_map.
AnimationPtr FIFE::ActionVisual::getAnimationByAngle | ( | int32_t | angle | ) |
Gets index to animation closest to given angle.
Definition at line 164 of file visual.cpp.
References FIFE::getIndexByAngle(), m_animation_map, and m_map.
|
private |
Definition at line 195 of file visual.h.
Referenced by addAnimation(), getActionImageAngles(), and getAnimationByAngle().
|
private |
Definition at line 199 of file visual.h.
Referenced by addAnimation(), and getAnimationByAngle().