|
NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/bases/d_multi_manager.hpp>
Multiplayer manager. Keeps track of statistics for each player, used for Coin Battle and Free Mode.
Definition at line 9 of file d_multi_manager.hpp.
Public Member Functions | |
| dMultiMng_c () | |
| Creates a new multiplayer manager. | |
| virtual | ~dMultiMng_c () |
| Destroys the multiplayer manager. | |
| void | initStage () |
| Initializes all counters to zero. | |
| void | setClapSE () |
| Plays the clap sound effect. | |
| void | setRest (int rest, int plrNo) |
| Sets the remaining lives for a player. | |
| void | addScore (int value, int plrNo) |
| Adds to the score of a player. | |
| void | incCoin (int plrNo) |
| Increments the coin count for a player. | |
| void | incEnemyDown (int plrNo) |
| Increments the enemy kill count for a player. | |
| void | setBattleCoin (int plrNo, int value) |
| Rewards a battle coin to a player. | |
| void | setCollectionCoin () |
| Loads the star coin collection information. | |
Public Attributes | |
| int | m_04 |
| int | mRest [PLAYER_COUNT] |
| The number of remaining lives for each player. | |
| int | mScore [PLAYER_COUNT] |
| The score of each player. | |
| int | mCoin [PLAYER_COUNT] |
| The coin count for each player. | |
| int | mEnemyDown [PLAYER_COUNT] |
| The enemy kill count for each player. | |
| int | mBattleCoin [PLAYER_COUNT] |
| u8 | mCollectionCoin [PLAYER_COUNT] |
| The star coin collection status for each player. Each byte is a bitfield representing whether each star coin has been collected by the corresponding player. 0x1 is the first star coin, 0x2 is the second, and 0x4 is the third. | |
Static Public Attributes | |
| static dMultiMng_c * | mspInstance |
| The instance of this class. | |
| dMultiMng_c::dMultiMng_c | ( | ) |
Creates a new multiplayer manager.
Definition at line 13 of file d_multi_manager.cpp.
|
virtual |
Destroys the multiplayer manager.
Definition at line 17 of file d_multi_manager.cpp.
| void dMultiMng_c::initStage | ( | ) |
Initializes all counters to zero.
Definition at line 19 of file d_multi_manager.cpp.
| void dMultiMng_c::setClapSE | ( | ) |
Plays the clap sound effect.
Definition at line 29 of file d_multi_manager.cpp.
| void dMultiMng_c::setRest | ( | int | rest, |
| int | plrNo ) |
Sets the remaining lives for a player.
Definition at line 38 of file d_multi_manager.cpp.
| void dMultiMng_c::addScore | ( | int | value, |
| int | plrNo ) |
Adds to the score of a player.
Definition at line 42 of file d_multi_manager.cpp.
| void dMultiMng_c::incCoin | ( | int | plrNo | ) |
Increments the coin count for a player.
Definition at line 50 of file d_multi_manager.cpp.
| void dMultiMng_c::incEnemyDown | ( | int | plrNo | ) |
Increments the enemy kill count for a player.
Definition at line 55 of file d_multi_manager.cpp.
| void dMultiMng_c::setBattleCoin | ( | int | plrNo, |
| int | value ) |
Rewards a battle coin to a player.
Definition at line 60 of file d_multi_manager.cpp.
| void dMultiMng_c::setCollectionCoin | ( | ) |
Loads the star coin collection information.
Definition at line 88 of file d_multi_manager.cpp.
| int dMultiMng_c::m_04 |
Definition at line 23 of file d_multi_manager.hpp.
| int dMultiMng_c::mRest[PLAYER_COUNT] |
The number of remaining lives for each player.
Definition at line 24 of file d_multi_manager.hpp.
| int dMultiMng_c::mScore[PLAYER_COUNT] |
The score of each player.
Definition at line 25 of file d_multi_manager.hpp.
| int dMultiMng_c::mCoin[PLAYER_COUNT] |
The coin count for each player.
Definition at line 26 of file d_multi_manager.hpp.
| int dMultiMng_c::mEnemyDown[PLAYER_COUNT] |
The enemy kill count for each player.
Definition at line 27 of file d_multi_manager.hpp.
| int dMultiMng_c::mBattleCoin[PLAYER_COUNT] |
The battle coin count for each player.
Definition at line 28 of file d_multi_manager.hpp.
| u8 dMultiMng_c::mCollectionCoin[PLAYER_COUNT] |
The star coin collection status for each player. Each byte is a bitfield representing whether each star coin has been collected by the corresponding player. 0x1 is the first star coin, 0x2 is the second, and 0x4 is the third.
Definition at line 33 of file d_multi_manager.hpp.
|
static |
The instance of this class.
Definition at line 35 of file d_multi_manager.hpp.