move ColToButtonName from Game to Style, to reduce GAMESTATE use

in Game
This commit is contained in:
Glenn Maynard
2006-09-30 00:46:21 +00:00
parent 77d506de27
commit 5541709a1f
7 changed files with 18 additions and 18 deletions
-12
View File
@@ -83,18 +83,6 @@ void Game::MenuButtonToGameInputs( MenuButton MenuI, PlayerNumber pn, GameInput
}
}
RString Game::ColToButtonName( int iCol ) const
{
const Style *pStyle = GAMESTATE->GetCurrentStyle();
const char *pzColumnName = pStyle->m_ColumnInfo[PLAYER_1][iCol].pzName;
if( pzColumnName != NULL )
return pzColumnName;
GameInput GI = pStyle->StyleInputToGameInput( iCol, PLAYER_1 );
return m_szButtonNames[GI.button];
}
TapNoteScore Game::MapTapNoteScore( TapNoteScore tns ) const
{
switch( tns )