![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Extension of animation data that loads and combines the animations for each movement direction into a single animation with different states. More...
#include <WalkAnimations.hpp>
Public Member Functions | |
bool | loadFromDirectory (const std::string &path) |
Loads the walking animations from the given directory. More... | |
float | getMaxStateLength () const |
Returns the maximum length of any substate animation in seconds. More... | |
Static Public Member Functions | |
static std::size_t | getStateFromDirection (bl::tmap::Direction dir) |
Maps the movement direction to the state index. More... | |
Extension of animation data that loads and combines the animations for each movement direction into a single animation with different states.
Definition at line 18 of file WalkAnimations.hpp.
|
inline |
Returns the maximum length of any substate animation in seconds.
Definition at line 41 of file WalkAnimations.hpp.
|
inlinestatic |
Maps the movement direction to the state index.
dir | The direction to map to |
Definition at line 34 of file WalkAnimations.hpp.
bool core::res::WalkAnimations::loadFromDirectory | ( | const std::string & | path | ) |
Loads the walking animations from the given directory.
path | The full path to the directory to load from |
Definition at line 9 of file WalkAnimations.cpp.