Ejemplo n.º 1
0
        // '' <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(KeyCode.EscapeKey))
            {
                GameController.AddNewState(GameState.ViewingGameMenu);
            }

            if (SwinGame.MouseClicked(MouseButton.LeftButton))
            {
                DiscoveryController.DoAttack();
            }
        }