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

#include <game/sLib/s_StateMgr.hpp>

Inheritance diagram for sStateMgr_c< T, Method, Factory, Check >:
[legend]

Description

template<class T, class Method, template< class > class Factory, class Check>
class sStateMgr_c< T, Method, Factory, Check >

An implementation of sStateMgrIf_c.

Template Parameters
TThe parent class for this state manager.
MethodThe state method handler to use.
FactoryThe state factory to use.
CheckThe state ID checker to use.

Definition at line 14 of file s_StateMgr.hpp.

Public Member Functions

 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.
 

Private Attributes

Check mCheck
 
Factory< T > mFactory
 
Method mMethod
 

Additional Inherited Members

- Private Member Functions inherited from sStateMgrIf_c

Constructor & Destructor Documentation

◆ sStateMgr_c()

template<class T , class Method , template< class > class Factory, class Check >
sStateMgr_c< T, Method, Factory, Check >::sStateMgr_c ( T & owner,
const sStateIDIf_c & initialState )
inline

Definition at line 16 of file s_StateMgr.hpp.

Member Function Documentation

◆ initializeState()

template<class T , class Method , template< class > class Factory, class Check >
virtual void sStateMgr_c< T, Method, Factory, Check >::initializeState ( )
inlinevirtual

Initializes the current state.

Implements sStateMgrIf_c.

Definition at line 20 of file s_StateMgr.hpp.

◆ executeState()

template<class T , class Method , template< class > class Factory, class Check >
virtual void sStateMgr_c< T, Method, Factory, Check >::executeState ( )
inlinevirtual

Executes the current state.

Implements sStateMgrIf_c.

Definition at line 21 of file s_StateMgr.hpp.

◆ finalizeState()

template<class T , class Method , template< class > class Factory, class Check >
virtual void sStateMgr_c< T, Method, Factory, Check >::finalizeState ( )
inlinevirtual

Prepares the current state for termination.

Implements sStateMgrIf_c.

Definition at line 22 of file s_StateMgr.hpp.

◆ changeState()

template<class T , class Method , template< class > class Factory, class Check >
virtual void sStateMgr_c< T, Method, Factory, Check >::changeState ( const sStateIDIf_c & newStateID)
inlinevirtual

Transitions to a new state ID.

Implements sStateMgrIf_c.

Definition at line 24 of file s_StateMgr.hpp.

◆ refreshState()

template<class T , class Method , template< class > class Factory, class Check >
virtual void sStateMgr_c< T, Method, Factory, Check >::refreshState ( )
inlinevirtual

Marks the current state to be executed again.

Implements sStateMgrIf_c.

Definition at line 26 of file s_StateMgr.hpp.

◆ getState()

template<class T , class Method , template< class > class Factory, class Check >
virtual sStateIf_c * sStateMgr_c< T, Method, Factory, Check >::getState ( ) const
inlinevirtual

Gets the state holder.

Implements sStateMgrIf_c.

Definition at line 28 of file s_StateMgr.hpp.

◆ getNewStateID()

template<class T , class Method , template< class > class Factory, class Check >
virtual const sStateIDIf_c * sStateMgr_c< T, Method, Factory, Check >::getNewStateID ( ) const
inlinevirtual

Gets the next state ID.

Implements sStateMgrIf_c.

Definition at line 29 of file s_StateMgr.hpp.

◆ getStateID()

template<class T , class Method , template< class > class Factory, class Check >
virtual const sStateIDIf_c * sStateMgr_c< T, Method, Factory, Check >::getStateID ( ) const
inlinevirtual

Gets the current state ID.

Implements sStateMgrIf_c.

Definition at line 30 of file s_StateMgr.hpp.

◆ getOldStateID()

template<class T , class Method , template< class > class Factory, class Check >
virtual const sStateIDIf_c * sStateMgr_c< T, Method, Factory, Check >::getOldStateID ( ) const
inlinevirtual

Gets the previous state ID.

Implements sStateMgrIf_c.

Definition at line 31 of file s_StateMgr.hpp.

Member Data Documentation

◆ mCheck

template<class T , class Method , template< class > class Factory, class Check >
Check sStateMgr_c< T, Method, Factory, Check >::mCheck
private

Definition at line 34 of file s_StateMgr.hpp.

◆ mFactory

template<class T , class Method , template< class > class Factory, class Check >
Factory<T> sStateMgr_c< T, Method, Factory, Check >::mFactory
private

Definition at line 35 of file s_StateMgr.hpp.

◆ mMethod

template<class T , class Method , template< class > class Factory, class Check >
Method sStateMgr_c< T, Method, Factory, Check >::mMethod
private

Definition at line 36 of file s_StateMgr.hpp.