2#include <game/sLib/s_StateInterfaces.hpp>
13template <
class T,
class Method,
template <
class>
class Factory,
class Check>
18 mMethod(mCheck, mFactory, initialState) {}
The interface for state IDs.
The interface for a state holder.
The interface for state managers.
An implementation of sStateMgrIf_c.
virtual void executeState()
Executes the current state.
virtual void refreshState()
Marks the current state to be executed again.
virtual const sStateIDIf_c * getOldStateID() const
Gets the previous state ID.
virtual void finalizeState()
Prepares the current state for termination.
virtual const sStateIDIf_c * getStateID() const
Gets the current state ID.
virtual const sStateIDIf_c * getNewStateID() const
Gets the next state ID.
virtual sStateIf_c * getState() const
Gets the state holder.
virtual void changeState(const sStateIDIf_c &newState)
Transitions to a new state ID.
virtual void initializeState()
Initializes the current state.