예제 #1
0
        //methods
        public void GetDay(Player player, Weather weather, int i, Random number)
        {
            player.inventory.supply = 0;

            DisplayDayStart(i+1);
            player.recipe.PromptForRecipe(player.inventory);
            weather.GetActualWeather(i, number);
            player.inventory.DisplayInventory();
            player.GetIngredients();

            DisplayDayStart(i + 1);
            player.inventory.DisplayInventory();
            weather.DisplayCurrentWeather(i);
            player.inventory.MakeBatch(player.inventory.PromptForBatch());
            player.inventory.DisplayInventory();
            GetExpense(player);
            player.GetPrice();

            DisplayDayStart(i + 1);
            GetCustomerList(i, weather);
            GetSales(player, customerList);
            player.Credit(dailySales);
            DisplayDaySummary(player, i+1);

            if(i < 6 && player.Balance >= 5)
            {
                Console.Write("Press Enter to continue to next day.");
                Console.ReadLine();
            }
        }