1#include <game/bases/d_multi_manager.hpp>
3#include <game/bases/d_a_player_manager.hpp>
4#include <game/bases/d_bg_parameter.hpp>
5#include <game/bases/d_game_com.hpp>
6#include <game/bases/d_info.hpp>
7#include <game/bases/d_s_stage.hpp>
8#include <game/bases/d_SmallScore.hpp>
20 for (
int i = 0; i < PLAYER_COUNT; i++) {
32 bgParam->xStart() + bgParam->xSize() / 2,
33 bgParam->yStart() - bgParam->ySize() / 2
39 mRest[playerNo] = rest;
43 daPyMng_c::changeItemKinopioPlrNo(plrNo);
51 daPyMng_c::changeItemKinopioPlrNo(plrNo);
56 daPyMng_c::changeItemKinopioPlrNo(plrNo);
77 dAcPy_c *player = daPyMng_c::getCtrlPlayer(plrNo);
78 if (player ==
nullptr) {
82 popupPos.y += player->mSmallScoreOffset;
83 dGameCom::CreateSmallScore(popupPos, popupType, plrNo,
false);
89 for (
int i = 0; i < PLAYER_COUNT; i++) {
96 int coin = dScStage_c::mCollectionCoin[i];
97 if (coin != PLAYER_COUNT) {
mVec3_c mPos
The actor's position.
static unsigned int mGameFlag
See GAME_FLAG_e.
Multiplayer manager. Keeps track of statistics for each player, used for Coin Battle and Free Mode.
void incEnemyDown(int plrNo)
Increments the enemy kill count for a player.
void initStage()
Initializes all counters to zero.
u8 mCollectionCoin[PLAYER_COUNT]
The star coin collection status for each player. Each byte is a bitfield representing whether each st...
dMultiMng_c()
Creates a new multiplayer manager.
void setBattleCoin(int plrNo, int value)
Rewards a battle coin to a player.
void addScore(int value, int plrNo)
Adds to the score of a player.
void setClapSE()
Plays the clap sound effect.
int mBattleCoin[PLAYER_COUNT]
int mScore[PLAYER_COUNT]
The score of each player.
virtual ~dMultiMng_c()
Destroys the multiplayer manager.
int mCoin[PLAYER_COUNT]
The coin count for each player.
void setRest(int rest, int plrNo)
Sets the remaining lives for a player.
int mRest[PLAYER_COUNT]
The number of remaining lives for each player.
static dMultiMng_c * mspInstance
The instance of this class.
void setCollectionCoin()
Loads the star coin collection information.
void incCoin(int plrNo)
Increments the coin count for a player.
int mEnemyDown[PLAYER_COUNT]
The enemy kill count for each player.
POPUP_TYPE_e
The different types of the small score popups.
@ POPUP_TYPE_COIN_15
[Coin icon]x15. Used in Coin Battle.
@ POPUP_TYPE_COIN_10
[Coin icon]x10. Used in Coin Battle.
@ POPUP_TYPE_COIN_3
[Coin icon]x3. Used in Coin Battle.
@ POPUP_TYPE_COIN_5
[Coin icon]x5. Used in Coin Battle.
@ POPUP_TYPE_COIN_20
[Coin icon]x20. Used in Coin Battle.
@ POPUP_TYPE_INVALID
Invalid popup type.
@ POPUP_TYPE_COIN_2
[Coin icon]x2. Used in Coin Battle.
A two-dimensional floating point vector.
A three-dimensional floating point vector.
#define MAX_EXTRA_MODE_SCORE
The maximum possible score in Free Mode and Coin Battle.
#define STAR_COIN_COUNT
The amount of Star Coins per level.