Пример #1
0
        private static void PerformSetupMenuAction(int button)
        {
            // CHECK Implement Case Statement
            switch (button)
            {
            case SETUP_MENU_EASY_BUTTON:
                GameController.SetDifficulty(AIOption.Easy);
                break;

            case SETUP_MENU_MEDIUM_BUTTON:
                GameController.SetDifficulty(AIOption.Medium);
                break;

            case SETUP_MENU_HARD_BUTTON:
                GameController.SetDifficulty(AIOption.Hard);

                break;
                //case SETUP_MENU_CLASSIC_THEME_BUTTON:

                //Audio.PlaySoundEffect(GameResources.GameSound("Hit"));
                //break;
                //case SETUP_MENU_SPACE_THEME_BUTTON:
                //GameResources.FreeResources();

                //Audio.PlaySoundEffect(GameResources.GameSound("Hit"));
                //break;
            }
            GameController.EndCurrentState();
        }
Пример #2
0
        /// <summary>
        ///     ''' The setup menu was clicked, perform the button's action.
        ///     ''' </summary>
        ///     ''' <param name="button">the button pressed</param>
        private static void PerformSetupMenuAction(int button)
        {
            switch (button)
            {
            case SETUP_MENU_EASY_BUTTON:
            {
                GameController.SetDifficulty(AIOption.Hard);
                break;
            }

            case SETUP_MENU_MEDIUM_BUTTON:
            {
                GameController.SetDifficulty(AIOption.Hard);
                break;
            }

            case SETUP_MENU_HARD_BUTTON:
            {
                GameController.SetDifficulty(AIOption.Hard);
                break;
            }
            }
            // Always end state - handles exit button as well
            GameController.EndCurrentState();
        }
Пример #3
0
        // If the setup menu was clicked, perform the button's action
        private static void PerformSetupMenuAction(int button)
        {
            // CHECK Implement Case Statement
            switch (button)
            {
            case SETUP_MENU_EASY_BUTTON:
                GameController.SetDifficulty(AIOption.Easy);
                break;

            case SETUP_MENU_MEDIUM_BUTTON:
                GameController.SetDifficulty(AIOption.Medium);
                break;

            case SETUP_MENU_HARD_BUTTON:
                GameController.SetDifficulty(AIOption.Hard);
                break;
            }
            GameController.EndCurrentState();
        }