move player positions from Style into metrics

This commit is contained in:
Chris Danford
2004-11-07 05:49:06 +00:00
parent f61f53cdc2
commit b8259d7af9
13 changed files with 133 additions and 144 deletions
+8 -8
View File
@@ -29,16 +29,16 @@ MenuInput Game::GameInputToMenuInput( GameInput GameI ) const
{
PlayerNumber pn;
Style::StyleType type = Style::TWO_PLAYERS_TWO_CREDITS;
StyleType type = TWO_PLAYERS_TWO_SIDES;
if( GAMESTATE->GetCurrentStyle() )
type = GAMESTATE->GetCurrentStyle()->m_StyleType;
switch( type )
{
case Style::ONE_PLAYER_ONE_CREDIT:
case Style::TWO_PLAYERS_TWO_CREDITS:
case ONE_PLAYER_ONE_SIDE:
case TWO_PLAYERS_TWO_SIDES:
pn = (PlayerNumber)GameI.controller;
break;
case Style::ONE_PLAYER_TWO_CREDITS:
case ONE_PLAYER_TWO_SIDES:
pn = GAMESTATE->m_MasterPlayerNumber;
break;
default:
@@ -69,19 +69,19 @@ void Game::MenuInputToGameInput( MenuInput MenuI, GameInput GameIout[4] ) const
GameIout[3].MakeInvalid();
GameController controller[2];
Style::StyleType type = Style::TWO_PLAYERS_TWO_CREDITS;
StyleType type = TWO_PLAYERS_TWO_SIDES;
if( GAMESTATE->GetCurrentStyle() )
type = GAMESTATE->GetCurrentStyle()->m_StyleType;
int iNumSidesUsing = 1;
switch( type )
{
case Style::ONE_PLAYER_ONE_CREDIT:
case Style::TWO_PLAYERS_TWO_CREDITS:
case ONE_PLAYER_ONE_SIDE:
case TWO_PLAYERS_TWO_SIDES:
controller[0] = (GameController)MenuI.player;
iNumSidesUsing = 1;
break;
case Style::ONE_PLAYER_TWO_CREDITS:
case ONE_PLAYER_TWO_SIDES:
controller[0] = GAME_CONTROLLER_1;
controller[1] = GAME_CONTROLLER_2;
iNumSidesUsing = 2;