5#ifndef __STATEMACHINE_H__
6#define __STATEMACHINE_H__
Definition: StateMachine.h:13
void setOwner(Object *p_new_owner)
Set owner of state machine.
State * m_p_state
Owner of this state machine.
Definition: StateMachine.h:17
void changeState(State *p_new_state)
Change current state.
void setGlobalState(State *p_new_state)
Set global state.
Object * getOwner() const
Get owner of state machine.
void setPreviousState(State *p_new_state)
Set previous state.
void setState(State *p_new_state)
Set current state.
State * getGlobalState() const
Get global state.
State * getState() const
Get current state.
State * getPreviousState() const
Get previous state.
State * m_p_previous_state
Current state.
Definition: StateMachine.h:18
void revertToPrevious()
Revert to previous state.
void Update()
Update state machine (calling Execute() for current state).
StateMachine()
Global state (reachable from any state).
State * m_p_global_state
Previous state.
Definition: StateMachine.h:19
An animation for a sprite.
Definition: Animation.h:15