NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_s_restart_crsin.hpp
1#pragma once
2#include <game/bases/d_scene.hpp>
3#include <game/bases/d_info.hpp>
4
5/**
6 * @brief This scene is used to "restart" levels.
7 * @ingroup bases
8 * @details It is used for the following purposes:
9 * - Returning to Peach's Castle after a Hint Movie ends.
10 * - Starting the title screen stage.
11 */
13public:
14 dScRestartCrsin_c(); ///< @copydoc dScene_c::dScene_c
15 virtual ~dScRestartCrsin_c(); ///< @copydoc dScene_c::~dScene_c
16
17 virtual int create();
18 virtual int doDelete();
19 virtual int preExecute();
20 virtual int execute();
21 virtual int draw();
22
23 /// @brief Starts the title screen stage or a title replay.
24 /// @param isReplay Whether it will start a random replay or the title screen.
25 /// @param forceChange If the scene transition should always be performed.
26 static void startTitle(u8 isReplay, bool forceChange);
27
28 /// @brief Starts the Peach's Castle stage.
29 static void reStartPeachCastle();
30
31 static dInfo_c::StartGameInfo_s m_startGameInfo; ///< Info used to start a level.
32};
virtual int doDelete()
do method for the delete operation.
virtual ~dScRestartCrsin_c()
Destroys the scene.
virtual int draw()
do method for the draw operation.
static void reStartPeachCastle()
Starts the Peach's Castle stage.
virtual int preExecute()
pre method for the execute operation.
static dInfo_c::StartGameInfo_s m_startGameInfo
Info used to start a level.
static void startTitle(u8 isReplay, bool forceChange)
Starts the title screen stage or a title replay.
virtual int create()
do method for the create operation.
dScRestartCrsin_c()
Creates a new scene.
virtual int execute()
do method for the execute operation.
dScene_c()
Creates a new scene.
Definition d_scene.cpp:23