2#include <game/sLib/s_FStateID.hpp>
3#include <game/sLib/s_StateID.hpp>
8 typedef void (T::*stateFunc)();
12 stateFunc initialize, stateFunc execute, stateFunc finalize
15 mSuperState(superState) {}
17 virtual unsigned int number()
const {
18 return superID()->numberBase();
22 if (!mSuperState.
isNull()) {
28 unsigned int numberBase()
const {
33 const sStateIDIf_c &mSuperState;
sFStateID_c(const char *name, stateFunc initialize, stateFunc execute, stateFunc finalize)
Constructs a new sFStateID_c instance.
virtual unsigned int number() const
Returns the number of this state ID.
The interface for state IDs.
virtual bool isNull() const =0
Returns whether this is a null state.
virtual const char * name() const
Returns the name of this state ID.
virtual unsigned int number() const
Returns the number of this state ID.