public void ChangeToBowserWorld() { isBlack = true; int oldScores = world.Mario.Scores; int oldLifes = world.Mario.lifes; IMarioPowerState oldState = world.Mario.CurrentPowerState; world = WorldFactory.CreateBowserWorld(); world.Mario.Scores = oldScores; world.Mario.lifes = oldLifes; world.Mario.CurrentPowerState = oldState; GameClass.collisionDetection = new AllCollisionHandler(this); GameClass.ControllersList = new List <IController>(); GameClass.ControllersList.Add(new KeybroadController(GameClass)); GameClass.ControllersList.Add(new GamepadController(GameClass)); GameClass.ControllersList.Add(new MouseController(GameClass)); if (state is WorldState) { WorldState temp = (WorldState)state; temp.level = WorldState.WorldLevel.World2_2; state = temp; } }