|
NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/sLib/s_FState.hpp>
A state holder for a given class.
| T | The class that this state belongs to. |
Definition at line 9 of file s_FState.hpp.
Public Types | |
| enum | STATE_ACTION_e { INITIALIZE , EXECUTE , FINALIZE } |
Public Member Functions | |
| sFState_c (T &owner) | |
| void | performAction (STATE_ACTION_e action) |
| Performs a state action. | |
| virtual void | initialize () |
| Initializes the state. | |
| virtual void | execute () |
| Executes the state. | |
| virtual void | finalize () |
| Prepares the state for termination. | |
| void | setID (const sFStateID_c< T > *id) |
Private Attributes | |
| T & | mpOwner |
| The owner of this state. | |
| const sFStateID_c< T > * | mpID |
| The state ID that runs the state methods. | |
| enum sFState_c::STATE_ACTION_e |
Definition at line 13 of file s_FState.hpp.
|
inline |
Definition at line 11 of file s_FState.hpp.
|
inline |
Performs a state action.
[Gets inlined, needed for function order to match].
| action | The action to perform. |
Definition at line 22 of file s_FState.hpp.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Prepares the state for termination.
Implements sStateIf_c.
Definition at line 34 of file s_FState.hpp.
|
inline |
Definition at line 36 of file s_FState.hpp.
|
private |
The owner of this state.
Definition at line 39 of file s_FState.hpp.
|
private |
The state ID that runs the state methods.
Definition at line 40 of file s_FState.hpp.