NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_WiiStrap.hpp
1#pragma once
2
3#include <game/bases/d_base.hpp>
4#include <game/bases/d_lytbase.hpp>
5
6/// @brief Displays the Wii Strap safety warning screen.
7/// @details Loops between the two images that show the safety warning and how to put on the strap.
8/// @note The button press to advance from this screen is handled by dScBoot_c.
9/// @ingroup bases
10class dWiiStrap_c : public dBase_c {
11public:
12 /// @brief The animation names used in the layout.
13 /// @unofficial
15 roop,
16 ANIM_NAME_COUNT
17 };
18
19 /// @brief The animations used for the layout.
20 /// @unofficial
21 enum ANIM_e {
22 ANIM_STRAP,
23 ANIM_COUNT
24 };
25
27 virtual ~dWiiStrap_c();
28
29 virtual int create();
30 virtual int preExecute();
31 virtual int execute();
32 virtual int draw();
33 virtual int doDelete();
34
35 bool createLayout();
36
37 LytBase_c mLayout; ///< The layout for the screen.
38
39 bool mHasLoadedLayout; ///< Whether the layout has been loaded.
40 bool mVisible; ///< Whether the screen is currently visible.
41};
A 2D layout.
Definition d_lytbase.hpp:9
dBase_c()
Constructs a new base.
Definition d_base.cpp:13
Displays the Wii Strap safety warning screen.
virtual int create()
do method for the create operation.
ANIM_e
The animations used for the layout.
virtual int draw()
do method for the draw operation.
virtual int doDelete()
do method for the delete operation.
virtual int preExecute()
pre method for the execute operation.
virtual int execute()
do method for the execute operation.
bool mVisible
Whether the screen is currently visible.
ANIM_NAME_e
The animation names used in the layout.
LytBase_c mLayout
The layout for the screen.
bool mHasLoadedLayout
Whether the layout has been loaded.