Move some player-specific data out of the bloated GameState class.
Have gameplay objects hold a PlayerState pointer instead of a PlayerNumber and indexing back into GameState. This will simplify off-screen players (e.g. CPU ghosts, network replicated human players, >2 players using one NoteField)
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "StepsUtil.h"
|
||||
#include "Foreach.h"
|
||||
#include "Style.h"
|
||||
#include "PlayerState.h"
|
||||
|
||||
|
||||
const int NUM_SCORE_DIGITS = 9;
|
||||
@@ -1727,7 +1728,7 @@ void ScreenSelectMusic::UpdateOptionsDisplays()
|
||||
{
|
||||
m_OptionIconRow[p].Refresh();
|
||||
|
||||
CString s = GAMESTATE->m_PlayerOptions[p].GetString();
|
||||
CString s = GAMESTATE->m_pPlayerState[p]->m_PlayerOptions.GetString();
|
||||
s.Replace( ", ", "\n" );
|
||||
// m_textPlayerOptions[p].SetText( s );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user