示例#1
0
        private void StartDay()
        {
            bool isDayOver = false;

            while (isDayOver == false)
            {
                int task = UserInterface.ChooseTask(player, days, currentDay);
                switch (task)
                {
                case 0:
                    store.PurchaseItems(player);
                    break;

                case 1:
                    player.EditRecipe();
                    break;

                case 2:
                    player.MakeLemonade();
                    break;

                case 3:
                    SimulateDay(days[currentDay - 1]);
                    isDayOver = true;
                    break;
                }
            }
        }