Example #1
0
        // '' <summary>
        // '' A button has been clicked, perform the associated action.
        // '' </summary>
        // '' <param name="menu">the menu that has been clicked</param>
        // '' <param name="button">the index of the button that was clicked</param>
        private static void PerformMenuAction(int menu, int button)
        {
            switch (menu)
            {
            case MAIN_MENU:
                MenuController.PerformMainMenuAction(button);
                break;

            case SETUP_MENU:
                MenuController.PerformSetupMenuAction(button);
                break;

            case GAME_MENU:
                MenuController.PerformGameMenuAction(button);
                break;
            }
        }