NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
sFStateMgr_c< T, Method > Class Template Reference

#include <dol/sLib/s_FStateMgr.hpp>

Inheritance diagram for sFStateMgr_c< T, Method >:
[legend]

Description

template<class T, class Method>
class sFStateMgr_c< T, Method >

A wrapper for sStateMgr_c that uses sFStateFct_c and sStateIDChk_c.

Template Parameters
TThe class that this state belongs to.
MethodThe method to use for the state manager.

Definition at line 12 of file s_FStateMgr.hpp.

Public Member Functions

 sFStateMgr_c (T &owner, const sStateIDIf_c &initializeState)
 
- Public Member Functions inherited from sStateMgr_c< T, Method, sFStateFct_c, sStateIDChk_c >
 sStateMgr_c (T &owner, const sStateIDIf_c &initialState)
 
virtual void initializeState ()
 Initializes the current state.
 
virtual void executeState ()
 Executes the current state.
 
virtual void finalizeState ()
 Prepares the current state for termination.
 
virtual void changeState (const sStateIDIf_c &newState)
 Transitions to a new state ID.
 
virtual void refreshState ()
 Marks the current state to be executed again.
 
virtual sStateIf_cgetState () const
 Gets the state holder.
 
virtual const sStateIDIf_cgetNewStateID () const
 Gets the next state ID.
 
virtual const sStateIDIf_cgetStateID () const
 Gets the current state ID.
 
virtual const sStateIDIf_cgetOldStateID () const
 Gets the previous state ID.
 

Constructor & Destructor Documentation

◆ sFStateMgr_c()

template<class T , class Method >
sFStateMgr_c< T, Method >::sFStateMgr_c ( T &  owner,
const sStateIDIf_c initializeState 
)
inline

Definition at line 14 of file s_FStateMgr.hpp.