![]() |
AireEngine
A 3D Open-World Game Engine
|
A state machine that controls transition between states. More...
#include <stateMachine.h>


Public Member Functions | |
| StateMachine (State *currentState) | |
| void | transitionTo (std::string dstState) |
Public Attributes | |
| State * | currentState |
| The current state that the state machine is in. | |
A state machine that controls transition between states.
|
inline |
Move the current state to one of its linked states. If destination state is unrecognised, do nothing.
| dstState | Destination state to move to. |

