Exemple #1
0
        public void DisplayUI()
        {
            Console.WindowWidth = 43;
            InsertMenuTitle();
            DisplayUIItems();
            Console.Write(" What would you like to do?: ");
            string menuChoice = Console.ReadLine();

            switch (menuChoice)
            {
            case "1":
                Console.Clear();
                newDay.BeginDay(player, rnd);
                DisplayUI();
                break;

            case "2":
                Console.Clear();
                store.DisplayStoreScreen(player, player.playerInventory);
                DisplayUI();
                break;

            case "3":
                Console.Clear();
                player.playerRecipe.AlterRecipe();
                DisplayUI();
                break;

            case "4":
                Console.Clear();
                DisplayRulesScreen();
                DisplayUI();
                break;

            case "5":
                Console.Clear();
                QuitGame();
                DisplayUI();
                break;

            default:
                Console.WriteLine("Please enter a number 1-5");
                TakeShortBreak();
                Console.Clear();
                DisplayUI();
                break;
            }
        }