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_4 = BIT_FLAG(4),
41 GAME_FLAG_IS_COIN_COURSE = BIT_FLAG(6)
42 };
43
44 struct enemy_s {
45 int mSubworld;
46 int mPathIndex;
47 PATH_DIRECTION_e mWalkDirection;
48 bool m_0c;
49 };
50
51 dInfo_c();
52
53 dCyuukan_c *getCyuukan() { return &mCyuukan; }
54 void GetMapEnemyInfo(int, int, enemy_s &);
55 void SetMapEnemyInfo(int, int, int, int);
56 void FUN_800bbc40(int, int, int);
57
58 u8 getCourse() const { return m_startGameInfo.mLevel1; }
59 u8 getWorld() const { return m_startGameInfo.mWorld1; }
60
61 static dInfo_c *getInstance() { return m_instance; }
62
63 char pad1[0x8];
64 dCyuukan_c mCyuukan;
65 char pad2[0x18];
66 int m_54;
67 u8 pad3[0x44];
68 int m_9c;
69 u8 pad4[0x2e4];
70 int mCharIDs[4];
71 bool mIsWorldSelect; ///< Whether the World Select Menu is being displayed.
72 int pad5[7];
73 int mDisplayCourseWorld;
74 int mDisplayCourseNum;
75 u8 pad6[0x14];
76 int mTextBoxMessageID;
77 int mTextBoxMessageGroup;
78 u8 pad7[0x1];
79 bool mExtensionAttached;
80 u8 m_3da;
81 u8 pad8[0x7];
82 int mCourseSelectPageNum;
83 int mCourseSelectIndexInPage;
84 u8 pad9[0x712];
85 bool mFukidashiActionPerformed[4][0x16];
86 u32 pad10;
87
88 static dInfo_c *m_instance;
89 static unsigned int mGameFlag; ///< See @p ::GAME_FLAG_e
90 static StartGameInfo m_startGameInfo;
91};
static unsigned int mGameFlag
See GAME_FLAG_e.
Definition d_info.hpp:89
bool mIsWorldSelect
Whether the World Select Menu is being displayed.
Definition d_info.hpp:71
A three-dimensional floating point vector.
Definition m_vec.hpp:100