NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_s_restart_crsin.cpp
1#include <game/bases/d_s_restart_crsin.hpp>
2#include <game/bases/d_game_com.hpp>
3#include <game/bases/d_WarningManager.hpp>
4#include <game/bases/d_fader.hpp>
5#include <game/bases/d_system.hpp>
6
7BASE_PROFILE(RESTART_CRSIN, dScRestartCrsin_c);
8
10
12
14 if (m_startGameInfo.mGameMode == dInfo_c::GAME_MODE_TITLE) {
15 dGameCom::initGame();
16 }
17
18 dWarningManager_c::m_WarningForbid++;
19 dFader_c::setFader(dFader_c::FADER_FADE);
21
22 nw4r::ut::Color color;
23 color = nw4r::ut::Color::BLACK;
24 dSys_c::setClearColor(color);
25
26 return SUCCEEDED;
27}
28
32
34 dInfo_c::m_instance->startGame(m_startGameInfo);
35 return SUCCEEDED;
36}
37
44
46 return SUCCEEDED;
47}
This scene is used to "restart" levels.
virtual int doDelete()
do method for the delete operation.
virtual ~dScRestartCrsin_c()
Destroys the scene.
virtual int draw()
do method for the draw operation.
virtual int preExecute()
pre method for the execute operation.
static dInfo_c::StartGameInfo_s m_startGameInfo
Info used to start a level.
virtual int create()
do method for the create operation.
dScRestartCrsin_c()
Creates a new scene.
virtual int execute()
do method for the execute operation.
virtual int preExecute()
pre method for the execute operation.
Definition d_scene.cpp:77
static void setFadeInFrame(unsigned short length)
Sets the duration of the next fade-in transition to length.
Definition d_scene.cpp:184
static void setFadeOutFrame(unsigned short length)
Sets the duration of the next fade-out transition to length.
Definition d_scene.cpp:188
static void setFadeInOutFrame(unsigned short length)
Sets the duration of the next fade-in and fade-out transitions to length.
Definition d_scene.cpp:192
@ NOT_READY
The step could not completed at this time.
Definition f_base.hpp:45
@ SUCCEEDED
The step was completed successfully.
Definition f_base.hpp:46
#define BASE_PROFILE(profName, className)
Creates a basic profile, using the profile number as the execute and draw order value.
Definition f_profile.hpp:23