NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
sStateMgrIf_c Class Referenceabstract

#include <dol/sLib/s_StateInterfaces.hpp>

Inheritance diagram for sStateMgrIf_c:
[legend]

Description

The interface for state managers.

A state manager handles execution of and transitioning between state IDs.

Definition at line 61 of file s_StateInterfaces.hpp.

Public Member Functions

virtual void initializeState ()=0
 Initializes the current state.
 
virtual void executeState ()=0
 Executes the current state.
 
virtual void finalizeState ()=0
 Prepares the current state for termination.
 
virtual void changeState (const sStateIDIf_c &newStateID)=0
 Transitions to a new state ID.
 
virtual void refreshState ()=0
 Marks the current state to be executed again.
 
virtual sStateIf_cgetState () const =0
 Gets the state holder.
 
virtual const sStateIDIf_cgetNewStateID () const =0
 Gets the next state ID.
 
virtual const sStateIDIf_cgetStateID () const =0
 Gets the current state ID.
 
virtual const sStateIDIf_cgetOldStateID () const =0
 Gets the previous state ID.
 

Constructor & Destructor Documentation

◆ ~sStateMgrIf_c()

virtual sStateMgrIf_c::~sStateMgrIf_c ( )
inlinevirtual

Definition at line 63 of file s_StateInterfaces.hpp.

Member Function Documentation

◆ initializeState()

virtual void sStateMgrIf_c::initializeState ( )
pure virtual

◆ executeState()

◆ finalizeState()

virtual void sStateMgrIf_c::finalizeState ( )
pure virtual

◆ changeState()

virtual void sStateMgrIf_c::changeState ( const sStateIDIf_c newStateID)
pure virtual

◆ refreshState()

virtual void sStateMgrIf_c::refreshState ( )
pure virtual

◆ getState()

◆ getNewStateID()

◆ getStateID()

◆ getOldStateID()