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