コード例 #1
0
ファイル: Game.cs プロジェクト: kristinkoelle/LemonadeStand
        public void CheckStartDayInput(string inputString, Day day, Player player)
        {
            switch (inputString)
            {
            case "1":
                day.Shop(player);
                break;

            case "2":
                day.RunNewspaper(players);
                break;

            case "3":
                day.ChangeRecipe(player);
                break;

            case "4":
                UI.DisplayPlayerInventory(player);
                break;

            case "q":
                Quit();
                break;

            case "m":
                MainMenu(player);
                break;

            default:
                Console.WriteLine("Oops! Invalid entry. Try again.");
                UI.DisplayMenu(menuOptions);
                break;
            }
        }