NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_s_stage.hpp
1#pragma once
2
3#include <game/bases/d_scene.hpp>
4#include <game/mLib/m_vec.hpp>
6
7class dScStage_c : public dScene_c {
8public:
9
10 /// @brief The possible stage loop types.
12 LOOP_NONE, ///< No stage looping occurs.
13 LOOP_EDGES, ///< The stage loops around on the zone edges. Only works for specific zone sizes.
14 LOOP_SECTION, ///< The stage loops in specific sections.
15 LOOP_COUNT,
16 };
17
18 char pad[0x119a];
19 u8 mCurrFile;
20
21 static float getLoopPosX(float x);
22 static int m_loopType;
23 static int mCollectionCoin[STAR_COIN_COUNT];
24
25 static const char mCdArcName[];
26
27 static bool m_isCourseOut; ///< Whether the game is transitioning from a stage scene to a non-stage scene.
28 static bool m_KoopaJrEscape;
29
30 typedef void (*changePosFunc)(mVec3_c *);
31 static void setChangePosFunc(int);
32
33 static void setTitleReplayRandomTable();
34
35 static changePosFunc changePos;
36 static dScStage_c *m_instance;
37};
LOOP_TYPE_e
The possible stage loop types.
Definition d_s_stage.hpp:11
@ LOOP_NONE
No stage looping occurs.
Definition d_s_stage.hpp:12
@ LOOP_SECTION
The stage loops in specific sections.
Definition d_s_stage.hpp:14
@ LOOP_EDGES
The stage loops around on the zone edges. Only works for specific zone sizes.
Definition d_s_stage.hpp:13
static bool m_isCourseOut
Whether the game is transitioning from a stage scene to a non-stage scene.
Definition d_s_stage.hpp:27
dScene_c()
Creates a new scene.
Definition d_scene.cpp:23
A three-dimensional floating point vector.
Definition m_vec.hpp:107
#define STAR_COIN_COUNT
The amount of Star Coins per level.