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

#include <game/sLib/s_StateMgr.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 7 of file s_StateMgr.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 9 of file s_StateMgr.hpp.

Member Function Documentation

◆ initializeState()

◆ executeState()

◆ finalizeState()

◆ changeState()

◆ refreshState()

◆ getState()

◆ getNewStateID()

◆ getStateID()

◆ getOldStateID()