Exemple #1
0
        public void Display()
        {
            string header = "Favorites";

            ArrowedMenu.GetInstance().Load(header, true, Favorites.ToArray());
            ArrowedMenu.GetInstance().Display();
        }
Exemple #2
0
        public void Display()
        {
            string header = "Welcome to the Number Guessing Game";

            ArrowedMenu.GetInstance().Load(header, true, "Start the Number Guessing Game", HomeMenu.HOME_MENU_STRING);
            ArrowedMenu.GetInstance().Display();
        }
Exemple #3
0
        public void Display()
        {
            string header = "Welcome to Hangman";

            ArrowedMenu.GetInstance().Load(header, true, "Start Hangman", HomeMenu.HOME_MENU_STRING);
            ArrowedMenu.GetInstance().Display();
        }
Exemple #4
0
        public void Display()
        {
            string header = "Escape Menu";

            ArrowedMenu.GetInstance().Load(header, true, HomeMenu.HOME_MENU_STRING, CreditsMenu.CREDITS_MENU_STRING,
                                           FavoritesMenu.FAVORITES_MENU_STRING, "Quit");
            ArrowedMenu.GetInstance().Display();
        }
Exemple #5
0
        // Returns the instance of the arrowed menu, creates it if it hasnt been yet
        public static ArrowedMenu GetInstance()
        {
            if (TheOnlyArrowedMenu == null)
            {
                TheOnlyArrowedMenu = new ArrowedMenu();
            }

            return(TheOnlyArrowedMenu);
        }
Exemple #6
0
        public void Display()
        {
            string header = "This is the Home Page";
            string footer = "Up/Down arrows cycle options. Right/Left arrows cycle pages. \n" +
                            "Enter selects an option. F/U favorites/unfavorites an option. Escape goes to escape menu.";

            ArrowedMenu.GetInstance().Load(header, footer, QuackMenu.QUACK_MENU_STRING, LineRaceMenu.LINE_RACE_MENU_STRING,
                                           HangmanMenu.HANGMAN_MENU_STRING, NumberGuessingGameMenu.NUMBER_GUESSING_GAME_MENU_STRING);

            ArrowedMenu.GetInstance().Display();
        }
Exemple #7
0
        public IMenu GetNextMenu()
        {
            IMenu nextMenu = ArrowedMenu.GetInstance().GetNextMenu();

            if (nextMenu == null)
            {
                StartNumberGuessingGame();

                nextMenu = NumberGuessingGameMenu.GetInstance();
            }

            return nextMenu;
        }
Exemple #8
0
        public IMenu GetNextMenu()
        {
            IMenu nextMenu = ArrowedMenu.GetInstance().GetNextMenu();

            // If it is null then quit was selected
            if (nextMenu == null)
            {
                StartHangman();

                nextMenu = HangmanMenu.GetInstance();
            }

            return(nextMenu);
        }
Exemple #9
0
 public IMenu GetNextMenu()
 {
     return(ArrowedMenu.GetInstance().GetNextMenu());
 }