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

#include <dol/sLib/s_StateInterfaces.hpp>

Inheritance diagram for sStateFctIf_c:
[legend]

Description

The interface for state factories.

A state factory produces a state holder from a given state ID.

Definition at line 37 of file s_StateInterfaces.hpp.

Public Member Functions

virtual sStateIf_cbuild (sStateIDIf_c const &id)=0
 Returns a new state with a given state ID.
 
virtual void dispose (sStateIf_c *&id)=0
 Clears out the pointer to a state.
 

Constructor & Destructor Documentation

◆ ~sStateFctIf_c()

virtual sStateFctIf_c::~sStateFctIf_c ( )
inlinevirtual

Definition at line 39 of file s_StateInterfaces.hpp.

Member Function Documentation

◆ build()

virtual sStateIf_c * sStateFctIf_c::build ( sStateIDIf_c const &  id)
pure virtual

Returns a new state with a given state ID.

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

◆ dispose()

virtual void sStateFctIf_c::dispose ( sStateIf_c *&  id)
pure virtual

Clears out the pointer to a state.

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