pass around a PlayerState and PlayerStageStats instead of PlayerNumber and looking things up in GameState

This commit is contained in:
Chris Danford
2005-08-23 20:40:47 +00:00
parent 0cedd92c67
commit 20bb281e18
21 changed files with 81 additions and 60 deletions
+5 -3
View File
@@ -5,12 +5,13 @@
#include "ActorFrame.h"
#include "GameConstantsAndTypes.h"
struct PlayerState;
class PlayerState;
class PlayerStageStats;
class ScoreDisplay : public ActorFrame
{
public:
virtual void Init( const PlayerState* pPlayerState ) { m_pPlayerState = pPlayerState; }
virtual void Init( const PlayerState* pPlayerState, const PlayerStageStats* pPlayerStageStats );
virtual void SetScore( int iNewScore ) {}
virtual void OnLoadSong() {};
@@ -23,7 +24,8 @@ public:
virtual void OnJudgment( HoldNoteScore score, TapNoteScore tscore ) {};
protected:
const PlayerState* m_pPlayerState; // needed to look up statistics in GAMESTATE
const PlayerState* m_pPlayerState; // needed to look up stats
const PlayerStageStats* m_pPlayerStageStats; // needed to look up stats
};
#endif