Exemple #1
0
 public void FillPitcher()
 {
     recipe.SetRecipe();
     Console.WriteLine("filling pitcher....");
     Console.ReadLine();
     inventory1.lemons.RemoveRange(0, recipe.amountOfLemons);
     inventory1.sugarcubes.RemoveRange(0, recipe.amountOfSugarCubes);
     inventory1.icecubes.RemoveRange(0, recipe.amountOfIceCubes);
     pitcher1.CupsinPitcher += 8;
     UserInterface.DisplayRemainingInventory(inventory1);
 }
Exemple #2
0
 public void NewDay(Player player, Day day)
 {
     recipe.SetRecipe(player);
     pitcher.MakePitcher(player, day);
     GenerateCustomers();
     foreach (Customer customer in customers)
     {
         bool didbuy = customer.BuyingLemonade(player, day);
         if (didbuy)
         {
             addBuy++;
             ValidateInventoryPourPitcher(player, day);
             player.wallet.AddToBalance(day.recipe.price);
         }
     }
 }