Split off some functions. Use static members, not free functions.

This commit is contained in:
Glenn Maynard
2003-03-23 18:47:13 +00:00
parent b0d64ecb7f
commit b63cbeb75e
2 changed files with 17 additions and 7 deletions
+13 -6
View File
@@ -23,12 +23,8 @@
const ScreenMessage SM_NotesEnded = ScreenMessage(SM_User+10); // MUST be same as in ScreenGameplay
bool PrepareForJukebox() // always return true.
bool ScreenJukebox::SetSong()
{
// ScreeJukeboxMenu must set this
ASSERT( GAMESTATE->m_CurStyle != STYLE_INVALID );
GAMESTATE->m_PlayMode = PLAY_MODE_ARCADE;
vector<Song*> vSongs;
if( GAMESTATE->m_sPreferredGroup == GROUP_ALL_MUSIC )
SONGMAN->GetSongs( vSongs );
@@ -68,9 +64,20 @@ bool PrepareForJukebox() // always return true.
for( int p=0; p<NUM_PLAYERS; p++ )
GAMESTATE->m_pCurNotes[p] = pNotes;
break; // done looking
return true; // done looking
}
return false;
}
bool ScreenJukebox::PrepareForJukebox() // always return true.
{
// ScreeJukeboxMenu must set this
ASSERT( GAMESTATE->m_CurStyle != STYLE_INVALID );
GAMESTATE->m_PlayMode = PLAY_MODE_ARCADE;
SetSong();
ASSERT( GAMESTATE->m_pCurSong );
GAMESTATE->m_MasterPlayerNumber = PLAYER_1;