2#include <game/sLib/s_StateID.hpp>
7sStateID_c::sStateID_c(
const char *name) {
12sStateID_c::~sStateID_c() {}
The interface for state IDs.
virtual unsigned int number() const =0
Returns the number of this state ID.
A generic implementation of a state ID.
virtual bool isSameName(const char *name) const
Returns whether this state ID is called name.
unsigned int mNumber
The number of this state ID.
const char * mpName
The name of this state ID.
static NumberMemo_c sm_numberMemo
Used to give each state a unique number.
virtual const char * name() const
Returns the name of this state ID.
virtual bool isNull() const
Returns whether this is a null state.
virtual bool isEqual(const sStateIDIf_c &other) const
Returns whether both states have the same number.
virtual bool operator==(const sStateIDIf_c &other) const
Overloaded equality operator, using isEqual.
virtual unsigned int number() const
Returns the number of this state ID.
virtual bool operator!=(const sStateIDIf_c &other) const
Overloaded inequality operator, using isEqual.