/// <summary> /// Handles input during the discovery phase of the game. /// </summary> /// <remarks> /// Escape opens the game menu. Clicking the mouse will /// attack a location. /// </remarks> public static void HandleDiscoveryInput() { if (SwinGame.KeyTyped(UtilityFunctions.EscapeKey)) { GameController.AddNewState(GameState.ViewingGameMenu); } if (SwinGame.KeyTyped(UtilityFunctions.CheatsKey)) { UtilityFunctions.ShowShipsCheat = !UtilityFunctions.ShowShipsCheat; } if (SwinGame.MouseClicked(MouseButton.LeftButton)) { DoAttack(); } if (SwinGame.KeyTyped(KeyCode.vk_b)) { UtilityFunctions.ChangeBackground(); } if (SwinGame.KeyTyped(KeyCode.vk_s)) { GameController.SaveGame(); } }