NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/sLib/s_Phase.hpp>
A phase is a list of methods to be called in order.
Definition at line 5 of file s_Phase.hpp.
Public Types | |
enum | METHOD_RESULT_e { WAIT , OK , DONE } |
Return value of a phase method and callMethod. More... | |
typedef METHOD_RESULT_e | phaseMethod(void *) |
Public Member Functions | |
sPhase_c (phaseMethod **methodList, int count) | |
Constructs a new phase with a given method list. | |
METHOD_RESULT_e | callMethod (void *thisPtr) |
Executes the phase until the end is reached or a method returns METHOD_RESULT_e::WAIT. | |
Public Attributes | |
phaseMethod ** | mpMethodList |
The method list. | |
unsigned short | mPhaseLength |
The length of the method list. | |
unsigned short | mCurrMethod |
The index of the method to execute. | |
METHOD_RESULT_e sPhase_c::phaseMethod(void *) |
Definition at line 14 of file s_Phase.hpp.
Return value of a phase method and callMethod.
Enumerator | |
---|---|
WAIT | Do not proceed to the next method in the phase. |
OK | Proceed to the next method in the phase. |
DONE | The phase is done. |
Definition at line 9 of file s_Phase.hpp.
sPhase_c::sPhase_c | ( | phaseMethod ** | methodList, |
int | count ) |
Constructs a new phase with a given method list.
methodList | The list of methods in the phase. |
count | The length of the method list. |
Definition at line 3 of file s_Phase.cpp.
sPhase_c::METHOD_RESULT_e sPhase_c::callMethod | ( | void * | thisPtr | ) |
Executes the phase until the end is reached or a method returns METHOD_RESULT_e::WAIT.
thisPtr | A pointer to the owner. |
Definition at line 9 of file s_Phase.cpp.
phaseMethod** sPhase_c::mpMethodList |
The method list.
Definition at line 31 of file s_Phase.hpp.
unsigned short sPhase_c::mPhaseLength |
The length of the method list.
Definition at line 32 of file s_Phase.hpp.
unsigned short sPhase_c::mCurrMethod |
The index of the method to execute.
Definition at line 33 of file s_Phase.hpp.