NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/sLib/s_StateID.hpp>
A generic implementation of a state ID.
It simply contains a name string and a unique number.
Definition at line 7 of file s_StateID.hpp.
Classes | |
class | NumberMemo_c |
Public Member Functions | |
sStateID_c (const char *name) | |
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 bool | operator!= (const sStateIDIf_c &other) const |
Overloaded inequality operator, using isEqual. | |
virtual bool | isSameName (const char *name) const |
Returns whether this state ID is called name . | |
virtual const char * | name () const |
Returns the name of this state ID. | |
virtual unsigned int | number () const |
Returns the number of this state ID. | |
Public Member Functions inherited from sStateIDIf_c |
Protected Attributes | |
const char * | mpName |
The name of this state ID. | |
unsigned int | mNumber |
The number of this state ID. | |
Static Protected Attributes | |
static NumberMemo_c | sm_numberMemo |
Used to give each state a unique number. | |
sStateID_c::sStateID_c | ( | const char * | name | ) |
Definition at line 7 of file s_StateID.cpp.
|
virtual |
Definition at line 12 of file s_StateID.cpp.
|
virtual |
Returns whether this is a null state.
Implements sStateIDIf_c.
Definition at line 14 of file s_StateID.cpp.
|
virtual |
Returns whether both states have the same number.
Implements sStateIDIf_c.
Definition at line 18 of file s_StateID.cpp.
|
virtual |
Overloaded equality operator, using isEqual.
Implements sStateIDIf_c.
Definition at line 22 of file s_StateID.cpp.
|
virtual |
Overloaded inequality operator, using isEqual.
Implements sStateIDIf_c.
Definition at line 26 of file s_StateID.cpp.
|
virtual |
Returns whether this state ID is called name
.
Implements sStateIDIf_c.
Reimplemented in sFStateID_c< T >, and sFStateID_c< dYesNoWindow_c >.
Definition at line 30 of file s_StateID.cpp.
|
virtual |
Returns the name of this state ID.
Implements sStateIDIf_c.
Definition at line 35 of file s_StateID.cpp.
|
virtual |
Returns the number of this state ID.
Implements sStateIDIf_c.
Definition at line 39 of file s_StateID.cpp.
|
protected |
The name of this state ID.
Definition at line 33 of file s_StateID.hpp.
|
protected |
The number of this state ID.
Definition at line 34 of file s_StateID.hpp.
|
staticprotected |
Used to give each state a unique number.
Definition at line 36 of file s_StateID.hpp.