Exemple #1
0
        public void PlayerTurn(Player player)
        {
            UserInterface.DisplayCurrentDaysAndForecast(days, currentDay);

            BuyItems(player);

            UserInterface.ReadAndClear();
            UserInterface.DisplayMoneyAndInventory(player);
            Console.WriteLine();
            UserInterface.DisplayCurrentDaysAndForecast(days, currentDay);

            player.DecideRecipe();

            player.MakePitcher();
            Console.Clear();

            DayOfSales(days[currentDay].customers, days, player);
            UserInterface.PotentialCupsSold(player, days[currentDay].potentialCustomers);
            UserInterface.DisplayCupsLeftInPitcher(player);

            UserInterface.DisplayMoney(player);

            player.dayEndMoney        = player.wallet.Money;
            player.dailyProfitOrLoss  = player.dayEndMoney - player.dayStartMoney;
            player.totalProfitOrLoss += player.dailyProfitOrLoss;

            UserInterface.DisplayProfitsAndNextDayForecast(player.dailyProfitOrLoss, GetForecast(currentDay));
            UserInterface.ReadAndClear();

            player.cupsSold = 0;
        }