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/bases/d_cyuukan.hpp>
4#include <game/mLib/m_vec.hpp>
6
7class dInfo_c {
8public:
10 u32 mReplayDuration;
11 u8 mMovieType;
12 u8 mEntrance;
13 u8 mArea;
14 bool mIsReplay;
15 u32 mScreenType;
16 u8 mWorld1;
17 u8 mLevel1;
18 u8 mWorld2;
19 u8 mLevel2;
20 };
21
22 /// @unofficial
23 /// @todo Fill out this enum.
25 GAME_FLAG_0 = BIT_FLAG(0),
26 GAME_FLAG_4 = BIT_FLAG(4),
27 GAME_FLAG_IS_COIN_COURSE = BIT_FLAG(6)
28 };
29
30 struct enemy_s {
31 int mSubworld;
32 int mPathIndex;
33 PATH_DIRECTION_e mWalkDirection;
34 bool m_0c;
35 };
36
37 dInfo_c();
38
39 void GetMapEnemyInfo(int, int, enemy_s &);
40 void SetMapEnemyInfo(int, int, int, int);
41 void FUN_800bbc40(int, int, int);
42
43 u8 getCourse() const { return m_startGameInfo.mLevel1; }
44 u8 getWorld() const { return m_startGameInfo.mWorld1; }
45 dCyuukan_c *getCyuukan() { return &mCyuukan; }
46
47 static dInfo_c *getInstance() { return m_instance; }
48
49 char pad1[0x8];
50 dCyuukan_c mCyuukan;
51 char pad2[0x18];
52 int m_54;
53 u8 pad3[0x44];
54 int m_9c;
55 u8 pad4[0x2e4];
56 int mCharIDs[4];
57 bool mIsWorldSelect; ///< Whether the World Select Menu is being displayed.
58 u8 pad5[30];
59 bool mClearCyuukan; ///< Clear the checkpoint data if this is @p true. [Used for the backdoor entrance of 7-C]
60 int mDisplayCourseWorld;
61 int mDisplayCourseNum;
62 u8 pad6[0x14];
63 int mTextBoxMessageID;
64 int mTextBoxMessageGroup;
65 u8 pad7[0x1];
66 bool mExtensionAttached;
67 u8 m_3da;
68 u8 pad8[0x7];
69 int mCourseSelectPageNum;
70 int mCourseSelectIndexInPage;
71 u8 pad9[0x712];
72 bool mFukidashiActionPerformed[4][0x16];
73 u32 pad10;
74
75 static dInfo_c *m_instance;
76 static unsigned int mGameFlag; ///< See GAME_FLAG_e
77 static StartGameInfo_s m_startGameInfo;
78};
bool mClearCyuukan
Clear the checkpoint data if this is true. [Used for the backdoor entrance of 7-C].
Definition d_info.hpp:59
static unsigned int mGameFlag
See GAME_FLAG_e.
Definition d_info.hpp:76
GAME_FLAG_e
Definition d_info.hpp:24
bool mIsWorldSelect
Whether the World Select Menu is being displayed.
Definition d_info.hpp:57