NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
s_Phase.hpp
1#pragma once
2
5class sPhase_c {
6public:
12 DONE
13 };
14 typedef METHOD_RESULT_e (phaseMethod)(void *);
15
22 sPhase_c(phaseMethod **methodList, int count);
29 METHOD_RESULT_e callMethod(void *thisPtr);
30
31 phaseMethod **mpMethodList;
32 unsigned short mPhaseLength;
33 unsigned short mCurrMethod;
34};
A phase is a list of methods to be called in order.
Definition s_Phase.hpp:5
phaseMethod ** mpMethodList
The method list.
Definition s_Phase.hpp:31
METHOD_RESULT_e
Return value of a phase method and callMethod.
Definition s_Phase.hpp:9
@ OK
Proceed to the next method in the phase.
Definition s_Phase.hpp:11
@ WAIT
Do not proceed to the next method in the phase.
Definition s_Phase.hpp:10
@ DONE
The phase is done.
Definition s_Phase.hpp:12
unsigned short mPhaseLength
The length of the method list.
Definition s_Phase.hpp:32
unsigned short mCurrMethod
The index of the method to execute.
Definition s_Phase.hpp:33
METHOD_RESULT_e callMethod(void *thisPtr)
Executes the phase until the end is reached or a method returns METHOD_RESULT_e::WAIT.
Definition s_Phase.cpp:9