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

#include <game/sLib/s_StateInterfaces.hpp>

Inheritance diagram for sStateIf_c:
[legend]

Description

The interface for a state holder.

A state holder is linked to a state ID and can execute its corresponding behaviour.

Definition at line 27 of file s_StateInterfaces.hpp.

Public Member Functions

virtual const void initialize ()=0
 Initializes the state.
 
virtual const void execute ()=0
 Executes the state.
 
virtual const void finalize ()=0
 Prepares the state for termination.
 

Constructor & Destructor Documentation

◆ ~sStateIf_c()

virtual sStateIf_c::~sStateIf_c ( )
inlinevirtual

Definition at line 29 of file s_StateInterfaces.hpp.

Member Function Documentation

◆ initialize()

virtual const void sStateIf_c::initialize ( )
pure virtual

Initializes the state.

Implemented in sFState_c< T >, and sFState_c< dYesNoWindow_c >.

◆ execute()

virtual const void sStateIf_c::execute ( )
pure virtual

Executes the state.

Implemented in sFState_c< T >, and sFState_c< dYesNoWindow_c >.

◆ finalize()

virtual const void sStateIf_c::finalize ( )
pure virtual

Prepares the state for termination.

Implemented in sFState_c< T >, and sFState_c< dYesNoWindow_c >.