|
NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/bases/d_next.hpp>
Manager for scene changes triggered by entrances.
Definition at line 8 of file d_next.hpp.
Public Types | |
| enum | SceneChangeType_e { NEXT_DIFFERENT_FILE , NEXT_DIFFERENT_AREA , NEXT_SAME_AREA } |
| The different types of scene changes. More... | |
Public Member Functions | |
| dNext_c () | |
| Constructs a new dNext_c. | |
| void | initialize () |
| Resets the class to its initial state. | |
| void | execute () |
| Checks for scene changes and executes them when necessary. | |
| void | setChangeSceneNextDat (u8 fileIdx, u8 nextGoto, dFader_c::fader_type_e faderType) |
| Updates the saved entrance data for the next scene change if not already set. | |
| void | setOwnNextData (u8 fileIdx, u8 nextGoto) |
| Sets the entrance data for the next scene change. | |
| bool | isNextDifferent (u8 fileIdx, u8 nextGoto) |
| Returns whether the currently saved entrance is different from the given one. | |
| bool | searchNextNum (u8 fileIdx, float x, float y, int *foundNum) |
| Search for a next entrance at the given coordinates in the given file. | |
| void | simpleChangeScene (u8 destNextGoto, dFader_c::fader_type_e faderType) |
| Move to a new entrance in the same file. | |
| void | simpleChangeScene (u8 destFile, u8 destNextGoto, dFader_c::fader_type_e faderType) |
| Move to a new entrance in any file. | |
| void | changeScene () |
| Go to the next scene using the data in mNextGotoData. | |
Static Public Member Functions | |
| static void | createInstance (EGG::Heap *heap) |
| Creates a class instance on the given heap. | |
| static void | deleteInstance () |
| Deletes the class instance. | |
Public Attributes | |
| sNextGotoData | mNextGotoData |
| The data for the entrance the player activated. | |
| SceneChangeType_e | mSceneChangeType |
| The type of scene change to do when going to the next entrance. | |
| bool | mNextDataSet |
| Whether the entrance data for the next scene change has been set. | |
| bool | mStartSceneChange |
| Whether a scene change should be performed next time execute() is called. | |
| bool | mSceneChangeDone |
| Whether the scene change has been performed. | |
| u16 | mMultiplayerDelay |
| Number of frames to delay the scene change in multiplayer mode. | |
| dFader_c::fader_type_e | mFaderType |
| The type of fader to use for the scene change. | |
Static Public Attributes | |
| static dNext_c * | m_instance |
| The singleton instance of this class. | |
| static const int | smc_MULTIPLAYER_SCENE_CHANGE_DELAY = 180 |
| The number of frames to delay scene changes in multiplayer mode. | |
The different types of scene changes.
Definition at line 12 of file d_next.hpp.
| dNext_c::dNext_c | ( | ) |
Constructs a new dNext_c.
Definition at line 13 of file d_next.cpp.
| void dNext_c::initialize | ( | ) |
Resets the class to its initial state.
Definition at line 32 of file d_next.cpp.
| void dNext_c::execute | ( | ) |
Checks for scene changes and executes them when necessary.
Definition at line 194 of file d_next.cpp.
| void dNext_c::setChangeSceneNextDat | ( | u8 | fileIdx, |
| u8 | nextGoto, | ||
| dFader_c::fader_type_e | faderType ) |
Updates the saved entrance data for the next scene change if not already set.
| fileIdx | The file index of the entrance to set. |
| nextGoto | The ID of the entrance to set. |
| faderType | The type of fader to use for the scene change. |
Definition at line 39 of file d_next.cpp.
| void dNext_c::setOwnNextData | ( | u8 | fileIdx, |
| u8 | nextGoto ) |
Sets the entrance data for the next scene change.
| fileIdx | The file index of the entrance to set. |
| nextGoto | The ID of the entrance to set. |
Definition at line 48 of file d_next.cpp.
| bool dNext_c::isNextDifferent | ( | u8 | fileIdx, |
| u8 | nextGoto ) |
Returns whether the currently saved entrance is different from the given one.
| fileIdx | The file index of the entrance to compare to. |
| nextGoto | The ID of the entrance to compare to. |
Definition at line 63 of file d_next.cpp.
| bool dNext_c::searchNextNum | ( | u8 | fileIdx, |
| float | x, | ||
| float | y, | ||
| int * | foundNum ) |
Search for a next entrance at the given coordinates in the given file.
| fileIdx | The file to search in. |
| x | The x coordinate to search at. |
| y | The y coordinate to search at. |
| foundNum | Pointer to write the found next entrance's ID to. |
Definition at line 82 of file d_next.cpp.
| void dNext_c::simpleChangeScene | ( | u8 | destNextGoto, |
| dFader_c::fader_type_e | faderType ) |
Move to a new entrance in the same file.
| destNextGoto | The new entrance to go to. |
| faderType | The type of fader to use for the scene change. |
Definition at line 129 of file d_next.cpp.
| void dNext_c::simpleChangeScene | ( | u8 | destFile, |
| u8 | destNextGoto, | ||
| dFader_c::fader_type_e | faderType ) |
Move to a new entrance in any file.
| destFile | The file to go to. |
| destNextGoto | The entrance in that file to go to. |
| faderType | The type of fader to use for the scene change. |
Definition at line 133 of file d_next.cpp.
| void dNext_c::changeScene | ( | ) |
Go to the next scene using the data in mNextGotoData.
Definition at line 150 of file d_next.cpp.
|
static |
Creates a class instance on the given heap.
Definition at line 17 of file d_next.cpp.
|
static |
Deletes the class instance.
Definition at line 23 of file d_next.cpp.
| sNextGotoData dNext_c::mNextGotoData |
The data for the entrance the player activated.
Definition at line 66 of file d_next.hpp.
| SceneChangeType_e dNext_c::mSceneChangeType |
The type of scene change to do when going to the next entrance.
Definition at line 67 of file d_next.hpp.
| bool dNext_c::mNextDataSet |
Whether the entrance data for the next scene change has been set.
Definition at line 68 of file d_next.hpp.
| bool dNext_c::mStartSceneChange |
Whether a scene change should be performed next time execute() is called.
Definition at line 69 of file d_next.hpp.
| bool dNext_c::mSceneChangeDone |
Whether the scene change has been performed.
Definition at line 70 of file d_next.hpp.
| u16 dNext_c::mMultiplayerDelay |
Number of frames to delay the scene change in multiplayer mode.
Definition at line 71 of file d_next.hpp.
| dFader_c::fader_type_e dNext_c::mFaderType |
The type of fader to use for the scene change.
Definition at line 72 of file d_next.hpp.
|
static |
The singleton instance of this class.
Definition at line 74 of file d_next.hpp.
|
static |
The number of frames to delay scene changes in multiplayer mode.
Definition at line 77 of file d_next.hpp.