2#include <game/sLib/s_StateInterfaces.hpp>
22 virtual bool isNull()
const;
29 virtual const char *
name()
const;
30 virtual unsigned int number()
const;
The interface for state IDs.
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.