NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_info.hpp
1#pragma once
2#include <types.h>
3#include <game/mLib/m_vec.hpp>
5
6class dCyuukan_c {
7public:
8 virtual ~dCyuukan_c();
9
10 bool isCyuukanStart(int, u8, u8);
11
12 int mActivatingPlayer;
13 mVec3_c mPlayerSetPos;
14 u32 mIsAmbush;
15 u8 mWorldNo;
16 u8 mCourseNo;
17 u8 mAreaNo;
18 u8 mEntranceNo;
19 u32 mIsKinopioInChukan;
20 int mCoinCollection[3];
21 int mPlayerType[2];
22};
23
24class dInfo_c {
25public:
27 u32 mReplayDuration;
28 u8 mMovieType;
29 u8 mEntrance;
30 u8 mArea;
31 bool mIsReplay;
32 u32 mScreenType;
33 u8 mWorld1;
34 u8 mLevel1;
35 u8 mWorld2;
36 u8 mLevel2;
37 };
38
39 enum GAME_FLAG_e {
40 GAME_FLAG_IS_COIN_COURSE = BIT_FLAG(6)
41 };
42
43 struct enemy_s {
44 int mSubworld;
45 int mPathIndex;
46 PATH_DIRECTION_e mWalkDirection;
47 bool m_0c;
48 };
49
50 dCyuukan_c *getCyuukan() { return &mCyuukan; }
51 void GetMapEnemyInfo(int, int, enemy_s &);
52 void SetMapEnemyInfo(int, int, int, int);
53 void FUN_800bbc40(int, int, int);
54
55 u8 getCourse() const { return m_startGameInfo.mLevel1; }
56 u8 getWorld() const { return m_startGameInfo.mWorld1; }
57
58 static dInfo_c *getInstance() {
59 return m_instance;
60 }
61
62 char pad1[0x8];
63 dCyuukan_c mCyuukan;
64 char pad2[0x18];
65 int m_54;
66 u8 pad3[0x44];
67 int m_9c;
68 u8 pad4[0x2e4];
69 int mCharIDs[4];
70 bool mIsWorldSelect; ///< Whether the World Select Menu is being displayed.
71 int pad5[7];
72 int mDisplayCourseWorld;
73 int mDisplayCourseNum;
74 u8 pad6[0x1d];
75 bool mExtensionAttached;
76 u8 pad7[0x8];
77 int mCourseSelectPageNum;
78 int mCourseSelectIndexInPage;
79 u8 pad8[0x712];
80 bool mFukidashiActionPerformed[4][0x16];
81
82 static dInfo_c *m_instance;
83 static unsigned int mGameFlag; ///< See @p ::GAME_FLAG_e
84 static StartGameInfo m_startGameInfo;
85};
static unsigned int mGameFlag
See GAME_FLAG_e.
Definition d_info.hpp:83
bool mIsWorldSelect
Whether the World Select Menu is being displayed.
Definition d_info.hpp:70
A three-dimensional floating point vector.
Definition m_vec.hpp:101