NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
sFStateFct_c< T > Class Template Reference

#include <dol/sLib/s_FStateFct.hpp>

Inheritance diagram for sFStateFct_c< T >:
[legend]

Description

template<class T>
class sFStateFct_c< T >

A state factory for a given class.

Template Parameters
TThe class that this state belongs to.

Definition at line 10 of file s_FStateFct.hpp.

Public Member Functions

 sFStateFct_c (T &owner)
 
virtual sStateIf_cbuild (const sStateIDIf_c &id)
 Returns a new state with a given state ID.
 
virtual void dispose (sStateIf_c *&id)
 Clears out the pointer to a state.
 
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.
 

Private Attributes

sFState_c< T > mState
 

Constructor & Destructor Documentation

◆ sFStateFct_c()

template<class T >
sFStateFct_c< T >::sFStateFct_c ( T &  owner)
inline

Definition at line 12 of file s_FStateFct.hpp.

Member Function Documentation

◆ build()

template<class T >
virtual sStateIf_c * sFStateFct_c< T >::build ( const sStateIDIf_c id)
inlinevirtual

Returns a new state with a given state ID.

Implements sStateFctIf_c.

Definition at line 14 of file s_FStateFct.hpp.

◆ dispose()

template<class T >
virtual void sFStateFct_c< T >::dispose ( sStateIf_c *&  id)
inlinevirtual

Clears out the pointer to a state.

Implements sStateFctIf_c.

Definition at line 22 of file s_FStateFct.hpp.

Member Data Documentation

◆ mState

template<class T >
sFState_c<T> sFStateFct_c< T >::mState
private

Definition at line 25 of file s_FStateFct.hpp.