Example #1
0
        private void StartTheDay()
        {
            int loopDurration;

            for (loopDurration = 1; loopDurration <= choosenNumberOfDays; loopDurration++)
            {
                startDailySale = false;
                Console.WriteLine("It's day {0}", loopDurration);
                entrepreneur.GetPlayerMoney();
                Console.WriteLine("You have ${0}", entrepreneur.GetPlayerMoney());
                while (startDailySale == false && LocalWeather.WeatherHasBeenCreated() == false)
                {
                    UserInterface.DailyMenuOptions();
                    DailyMenuChoice();
                }
                Recipe.ChangeLemonadeRecipe();
                int passersBy;
                for (passersBy = 1; passersBy < Buyer.GetCustomers(); passersBy++)
                {
                    Buyer.TotalLemonadeBuyers(Buyer.CalculateBuyerInterest(LocalWeather.GetWeather(), LocalWeather.GetTemperature()), Recipe.LemonadePotency());
                }
                Console.WriteLine("You sold lemonade to {0} customers!", Buyer.GetNumberOfBuyers());
                PlayerInventory.EmptyIceInventory();
            }
        }