public void CreateGame(Games newGameMode, bool multiplayer) { gameState = GameState.Game; switch (newGameMode) { case Games.Classic: currentBackground = new LineEmUpBackground(); thisIsOurGame = new SinglePlayerGame(); thisIsOurGame.CreateGame(Games.Classic); break; case Games.Tug: currentBackground = new TugOfWarBackground(); thisIsOurGame = new LocalMultiplayerGame(); thisIsOurGame.CreateGame(Games.Tug); break; case Games.Line: currentBackground = new LineEmUpBackground(); thisIsOurGame = new LocalMultiplayerGame(); thisIsOurGame.CreateGame(Games.Line); break; case Games.Pick: currentBackground = new PickNDropBackground(); thisIsOurGame = new LocalMultiplayerGame(); thisIsOurGame.CreateGame(Games.Pick); break; case Games.Switch: currentBackground = new SwitcharooBuckarooBackground(); thisIsOurGame = new LocalMultiplayerGame(); thisIsOurGame.CreateGame(Games.Switch); break; case Games.Factory: currentBackground = new BlockFactoryBackground(); thisIsOurGame = new SinglePlayerGame(); thisIsOurGame.CreateGame(Games.Factory); break; case Games.Nightmare: currentBackground = new NightmareBackground(); thisIsOurGame = new LocalMultiplayerGame(); thisIsOurGame.CreateGame(Games.Nightmare); break; case Games.OnlineClassic: currentBackground = new LineEmUpBackground(); break; case Games.OnlineTug: currentBackground = new TugOfWarBackground(); thisIsOurGame = new OnlineMultiplayerGame(); thisIsOurGame.CreateGame(Games.OnlineTug); break; case Games.OnlineLine: currentBackground = new LineEmUpBackground(); thisIsOurGame = new OnlineMultiplayerGame(); thisIsOurGame.CreateGame(Games.OnlineLine); break; case Games.OnlinePick: currentBackground = new PickNDropBackground(); thisIsOurGame = new OnlineMultiplayerGame(); thisIsOurGame.CreateGame(Games.OnlinePick); break; case Games.OnlineSwitch: currentBackground = new SwitcharooBuckarooBackground(); thisIsOurGame = new OnlineMultiplayerGame(); thisIsOurGame.CreateGame(Games.OnlineSwitch); break; case Games.DoubleTrouble: currentBackground = new DoubleTroubleBackground(); thisIsOurGame = new SinglePlayerGame(); thisIsOurGame.CreateGame(Games.DoubleTrouble); break; default: gameState = GameState.Menu; break; } thisIsOurGame.SetOverlordReference(this); }