Beispiel #1
0
 public void PourLemonadePitcher(Inventory inventory)
 {
     if (inventory.LemonCount > 0 && inventory.IceCount > 0 && inventory.SugarCount > 0 && inventory.CupCount > 9)
     {
         inventory.LemonCount       -= lemonsPerPitcher;
         inventory.IceCount         -= icePerPitcher;
         inventory.SugarCount       -= sugarPerPitcher;
         cupsOfLemonadeLeftInPitcher = 10;
     }
     else
     {
         UserInterface.InvalidPourLemonadeResponse();
     }
 }