Fix PlayerStageStats::SetLifeRecordAt to broadcast correct message for the player. Also adds Message::Message(MessageID) constructor.

This commit is contained in:
Kyzentun
2014-08-06 04:41:05 -06:00
parent 84a8d3adfb
commit 6be879f06d
6 changed files with 51 additions and 4 deletions
+8 -2
View File
@@ -13,8 +13,10 @@ class PlayerStageStats
{
public:
/** @brief Set up the PlayerStageStats with default values. */
PlayerStageStats() { Init(); }
void Init();
PlayerStageStats() { InternalInit(); }
void InternalInit();
void Init(PlayerNumber pn);
void Init(MultiPlayer pn);
/**
* @brief Add stats from one PlayerStageStats to another.
@@ -31,6 +33,10 @@ public:
int GetLessonScoreNeeded() const;
void ResetScoreForLesson();
bool m_for_multiplayer;
PlayerNumber m_player_number;
MultiPlayer m_multiplayer_number;
bool m_bJoined;
bool m_bPlayerCanAchieveFullCombo;
vector<Steps*> m_vpPossibleSteps;