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

Description

template<class T, template< class, class > class Manager, class Method1, class Method2>
class sStateStateMgr_c< T, Manager, Method1, Method2 >

Definition at line 13 of file s_StateStateMgr.hpp.

Public Member Functions

 sStateStateMgr_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 bool isSubState () const
 
virtual void returnState ()
 
virtual const sStateIDIf_cgetOldStateID () const
 Gets the previous state ID.
 
virtual void refreshState ()
 Marks the current state to be executed again.
 
virtual void changeToSubState (const sStateIDIf_c &newState)
 
virtual void changeState (const sStateIDIf_c &newState)
 Transitions to a new state ID.
 
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_cgetMainStateID () const
 

Public Attributes

Manager< T, Method1mainMgr
 
Manager< T, Method2subMgr
 
sStateMgrIf_ccurrentMgr
 

Constructor & Destructor Documentation

◆ sStateStateMgr_c()

template<class T, template< class, class > class Manager, class Method1, class Method2>
sStateStateMgr_c< T, Manager, Method1, Method2 >::sStateStateMgr_c ( T & owner,
const sStateIDIf_c & initialState )
inline

Definition at line 15 of file s_StateStateMgr.hpp.

Member Function Documentation

◆ initializeState()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual void sStateStateMgr_c< T, Manager, Method1, Method2 >::initializeState ( )
inlinevirtual

Initializes the current state.

Implements sStateMgrIf_c.

Definition at line 20 of file s_StateStateMgr.hpp.

◆ executeState()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual void sStateStateMgr_c< T, Manager, Method1, Method2 >::executeState ( )
inlinevirtual

Executes the current state.

Implements sStateMgrIf_c.

Definition at line 21 of file s_StateStateMgr.hpp.

◆ finalizeState()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual void sStateStateMgr_c< T, Manager, Method1, Method2 >::finalizeState ( )
inlinevirtual

Prepares the current state for termination.

Implements sStateMgrIf_c.

Definition at line 22 of file s_StateStateMgr.hpp.

◆ isSubState()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual bool sStateStateMgr_c< T, Manager, Method1, Method2 >::isSubState ( ) const
inlinevirtual

Implements sStateStateMgrIf_c.

Definition at line 30 of file s_StateStateMgr.hpp.

◆ returnState()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual void sStateStateMgr_c< T, Manager, Method1, Method2 >::returnState ( )
inlinevirtual

Implements sStateStateMgrIf_c.

Definition at line 32 of file s_StateStateMgr.hpp.

◆ getOldStateID()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual const sStateIDIf_c * sStateStateMgr_c< T, Manager, Method1, Method2 >::getOldStateID ( ) const
inlinevirtual

Gets the previous state ID.

Implements sStateMgrIf_c.

Definition at line 39 of file s_StateStateMgr.hpp.

◆ refreshState()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual void sStateStateMgr_c< T, Manager, Method1, Method2 >::refreshState ( )
inlinevirtual

Marks the current state to be executed again.

Implements sStateMgrIf_c.

Definition at line 41 of file s_StateStateMgr.hpp.

◆ changeToSubState()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual void sStateStateMgr_c< T, Manager, Method1, Method2 >::changeToSubState ( const sStateIDIf_c & newState)
inlinevirtual

Implements sStateStateMgrIf_c.

Definition at line 43 of file s_StateStateMgr.hpp.

◆ changeState()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual void sStateStateMgr_c< T, Manager, Method1, Method2 >::changeState ( const sStateIDIf_c & newStateID)
inlinevirtual

Transitions to a new state ID.

Implements sStateMgrIf_c.

Definition at line 48 of file s_StateStateMgr.hpp.

◆ getState()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual sStateIf_c * sStateStateMgr_c< T, Manager, Method1, Method2 >::getState ( ) const
inlinevirtual

Gets the state holder.

Implements sStateMgrIf_c.

Definition at line 49 of file s_StateStateMgr.hpp.

◆ getNewStateID()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual const sStateIDIf_c * sStateStateMgr_c< T, Manager, Method1, Method2 >::getNewStateID ( ) const
inlinevirtual

Gets the next state ID.

Implements sStateMgrIf_c.

Definition at line 50 of file s_StateStateMgr.hpp.

◆ getStateID()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual const sStateIDIf_c * sStateStateMgr_c< T, Manager, Method1, Method2 >::getStateID ( ) const
inlinevirtual

Gets the current state ID.

Implements sStateMgrIf_c.

Definition at line 51 of file s_StateStateMgr.hpp.

◆ getMainStateID()

template<class T, template< class, class > class Manager, class Method1, class Method2>
virtual const sStateIDIf_c * sStateStateMgr_c< T, Manager, Method1, Method2 >::getMainStateID ( ) const
inlinevirtual

Implements sStateStateMgrIf_c.

Definition at line 52 of file s_StateStateMgr.hpp.

Member Data Documentation

◆ mainMgr

template<class T, template< class, class > class Manager, class Method1, class Method2>
Manager<T, Method1> sStateStateMgr_c< T, Manager, Method1, Method2 >::mainMgr

Definition at line 54 of file s_StateStateMgr.hpp.

◆ subMgr

template<class T, template< class, class > class Manager, class Method1, class Method2>
Manager<T, Method2> sStateStateMgr_c< T, Manager, Method1, Method2 >::subMgr

Definition at line 55 of file s_StateStateMgr.hpp.

◆ currentMgr

template<class T, template< class, class > class Manager, class Method1, class Method2>
sStateMgrIf_c* sStateStateMgr_c< T, Manager, Method1, Method2 >::currentMgr

Definition at line 56 of file s_StateStateMgr.hpp.