![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Animation state machine (FSM) for managing transitions. More...
#include <AnimationTypes.h>
Public Member Functions | |
| AnimationGraph () | |
| const AnimationState * | GetState (const std::string &name) const |
| Get state by name. | |
| bool | CanTransition (const std::string &from, const std::string &to) const |
| Check if transition from one state to another is valid. | |
Public Attributes | |
| std::string | graphId |
| Unique identifier for this graph. | |
| std::string | defaultState |
| Initial animation state. | |
| std::unordered_map< std::string, AnimationState > | states |
Animation state machine (FSM) for managing transitions.
Definition at line 343 of file AnimationTypes.h.
|
inline |
Definition at line 351 of file AnimationTypes.h.
|
inline |
Check if transition from one state to another is valid.
| from | Source animation state |
| to | Target animation state |
Definition at line 373 of file AnimationTypes.h.
References GetComponentTypeID_Static(), and states.
Here is the call graph for this function:
|
inline |
Get state by name.
| name | State name to search for |
Definition at line 361 of file AnimationTypes.h.
References GetComponentTypeID_Static(), and states.
Here is the call graph for this function:| std::string Olympe::AnimationGraph::defaultState |
Initial animation state.
Definition at line 346 of file AnimationTypes.h.
| std::string Olympe::AnimationGraph::graphId |
Unique identifier for this graph.
Definition at line 345 of file AnimationTypes.h.
| std::unordered_map<std::string, AnimationState> Olympe::AnimationGraph::states |
Definition at line 349 of file AnimationTypes.h.
Referenced by CanTransition(), and GetState().