NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/sLib/s_StateInterfaces.hpp>
The interface for state IDs.
A state ID is made up of a name string and a unique number, where 0 denotes a null state. Null states do not have any corresponding behaviour. They can be used, for example, if a state holder needs to be initialized but the initial state ID is not known yet.
Definition at line 10 of file s_StateInterfaces.hpp.
Public Member Functions | |
virtual bool | isNull () const =0 |
Returns whether this is a null state. | |
virtual bool | isEqual (const sStateIDIf_c &other) const =0 |
Returns whether both states have the same number. | |
virtual bool | operator== (const sStateIDIf_c &other) const =0 |
Overloaded equality operator, using isEqual. | |
virtual bool | operator!= (const sStateIDIf_c &other) const =0 |
Overloaded inequality operator, using isEqual. | |
virtual bool | isSameName (const char *name) const =0 |
Returns whether this state ID is called name . | |
virtual const char * | name () const =0 |
Returns the name of this state ID. | |
virtual unsigned int | number () const =0 |
Returns the number of this state ID. | |
|
inlinevirtual |
Definition at line 12 of file s_StateInterfaces.hpp.
|
pure virtual |
Returns whether this is a null state.
Implemented in sStateID_c.
|
pure virtual |
Returns whether both states have the same number.
Implemented in sStateID_c.
|
pure virtual |
Overloaded equality operator, using isEqual.
Implemented in sStateID_c.
|
pure virtual |
Overloaded inequality operator, using isEqual.
Implemented in sStateID_c.
|
pure virtual |
Returns whether this state ID is called name
.
Implemented in sFStateID_c< T >, sFStateID_c< dYesNoWindow_c >, and sStateID_c.
|
pure virtual |
Returns the name of this state ID.
Implemented in sStateID_c.
|
pure virtual |
Returns the number of this state ID.
Implemented in sStateID_c.