Exemplo n.º 1
0
 public void BuyItems(Store store, Inventory inventory)
 {
     store.BuyLemons(inventory);
     store.BuySugar(inventory);
     store.BuyIce(inventory);
     store.BuyCups(inventory);
     Console.Clear();
     inventory.DisplayInventory();
     inventory.CheckCash(inventory);
     Console.Clear();
 }
Exemplo n.º 2
0
 //member methods (Can Do)
 public void RunGame()
 {
     UserInterface.DisplayRules();
     UserInterface.DisplayWeatherForecast(days);
     while (day.numberOfDays <= 7)
     {
         day.CreateCustomer();
         player.recipe.SetRecipe();
         UserInterface.DisplayStock();
         store.BuyCups();
         store.BuyLemon();
         store.BuySugar();
         store.BuyIce();
         Console.WriteLine("Here is your money leftover! " + player.wallet.Money);
         Console.ReadLine();
         player.pitcher.DisplayPitcherCups(player);
         DisplayActualWeather();
         day.ChoiceToBuy(weather, player);
         Console.WriteLine("Here is your amount of money after the day! " + player.wallet.Money);
         Console.ReadLine();
     }
 }