NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
sFStateVirtualID_c< T > Class Template Reference
Inheritance diagram for sFStateVirtualID_c< T >:
[legend]

Description

template<typename T>
class sFStateVirtualID_c< T >

Definition at line 6 of file s_FStateVirtualID.hpp.

Public Types

typedef void(T::* stateFunc) ()
Public Types inherited from sFStateID_c< T >
typedef void(T::* stateFunc) ()

Public Member Functions

 sFStateVirtualID_c (const sStateIDIf_c &superState, const char *name, stateFunc initialize, stateFunc execute, stateFunc finalize)
virtual unsigned int number () const
 Returns the number of this state ID.
const sFStateVirtualID_c< T > * superID () const
unsigned int numberBase () const
Public Member Functions inherited from sFStateID_c< T >
 sFStateID_c (const char *name, stateFunc initialize, stateFunc execute, stateFunc finalize)
 Constructs a new sFStateID_c instance.
virtual bool isSameName (const char *otherName) const
 Returns true if the given name matches this state ID's name.
virtual void initializeState (T &owner) const
 Calls the initialize method on the owner.
virtual void executeState (T &owner) const
 Calls the execute method on the owner.
virtual void finalizeState (T &owner) const
 Calls the finalize method on the owner.
Public Member Functions inherited from sStateID_c
 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 int operator== (const sStateIDIf_c &other) const
 Overloaded equality operator, using isEqual().
virtual int operator!= (const sStateIDIf_c &other) const
 Overloaded inequality operator, using isEqual().
virtual const char * name () const
 Returns the name of this state ID.

Private Attributes

const sStateIDIf_cmSuperState

Additional Inherited Members

Protected Attributes inherited from sStateID_c
const char * mpName
 The name of this state ID.
unsigned int mNumber
 The number of this state ID.
Static Protected Attributes inherited from sStateID_c
static NumberMemo_c sm_numberMemo
 Used to give each state a unique number.

Member Typedef Documentation

◆ stateFunc

template<typename T>
typedef void(T::* sFStateVirtualID_c< T >::stateFunc) ()

Definition at line 8 of file s_FStateVirtualID.hpp.

Constructor & Destructor Documentation

◆ sFStateVirtualID_c()

template<typename T>
sFStateVirtualID_c< T >::sFStateVirtualID_c ( const sStateIDIf_c & superState,
const char * name,
stateFunc initialize,
stateFunc execute,
stateFunc finalize )
inline

Definition at line 10 of file s_FStateVirtualID.hpp.

Member Function Documentation

◆ number()

template<typename T>
virtual unsigned int sFStateVirtualID_c< T >::number ( ) const
inlinevirtual

Returns the number of this state ID.

Reimplemented from sStateID_c.

Definition at line 17 of file s_FStateVirtualID.hpp.

◆ superID()

template<typename T>
const sFStateVirtualID_c< T > * sFStateVirtualID_c< T >::superID ( ) const
inline

Definition at line 21 of file s_FStateVirtualID.hpp.

◆ numberBase()

template<typename T>
unsigned int sFStateVirtualID_c< T >::numberBase ( ) const
inline

Definition at line 28 of file s_FStateVirtualID.hpp.

Member Data Documentation

◆ mSuperState

template<typename T>
const sStateIDIf_c& sFStateVirtualID_c< T >::mSuperState
private

Definition at line 33 of file s_FStateVirtualID.hpp.