NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_game_com.hpp
1#pragma once
2#include <types.h>
3#include <lib/nw4r/lyt/lyt_picture.hpp>
5
9namespace dGameCom {
10
12 // Random Number Generation API //
14
16
18 // Game Pause API //
20
23 GAME_STOP_PAUSE = BIT_FLAG(0),
24 GAME_STOP_WARNING = BIT_FLAG(1),
26 GAME_STOP_HOME_MENU = BIT_FLAG(3),
28 };
29
32 bool isGameStop(ulong flag);
34
36 // Model Lighting API //
38
39 void SetSoftLight_Player(m3d::bmdl_c&, int);
40 void SetSoftLight_Map(m3d::bmdl_c&, int);
41 void SetSoftLight_Boss(m3d::bmdl_c&, int);
42 void SetSoftLight_Enemy(m3d::bmdl_c&, int);
43 void SetSoftLight_MapObj(m3d::bmdl_c&, int);
44 void SetSoftLight_Item(m3d::bmdl_c&, int);
45
47 // Other APIs //
49
51 void updateSelectCursor(nw4r::lyt::Picture *pic, int index, bool useSpecialDraw);
52 float getDispCenterY();
53}
A collection of various functions used throughout the game.
Definition d_game_com.hpp:9
void SetSoftLight_Player(m3d::bmdl_c &, int)
Sets the soft light effect for players.
void SetSoftLight_Enemy(m3d::bmdl_c &, int)
Sets the soft light effect for enemies.
void SetSoftLight_MapObj(m3d::bmdl_c &, int)
Sets the soft light effect for map objects.
void SetSoftLight_Item(m3d::bmdl_c &, int)
Sets the soft light effect for items.
void SetSoftLight_Map(m3d::bmdl_c &, int)
Sets the soft light effect for map actors.
u32 getRandomSeed()
Gets a seed used for randomness.
bool isGameStop(ulong flag)
Determines if gameplay is currently stopped for the specified reason(s).
void clearGameStop()
Resets the game stop state.
void SetSoftLight_Boss(m3d::bmdl_c &, int)
Sets the soft light effect for bosses.
void updateSelectCursor(nw4r::lyt::Picture *pic, int index, bool useSpecialDraw)
GAME_STOP_e
The game stopping conditions.
@ GAME_STOP_OTASUKE_PAUSE
The pause menu is open during super guide/hint movie playback.
@ GAME_STOP_PAUSE
The pause menu is open.
@ GAME_STOP_WARNING
An error occurred.
@ GAME_STOP_HOME_MENU
The Home Menu is open.
@ GAME_STOP_ANY
The game is stopped for any unspecified reason.