Ejemplo n.º 1
0
 // Decide if customer will buy lemonade based on weather, recipe, and personal preferences.
 // Returns how many cups the customer will buy.
 public abstract int BuysLemonade(Weather weather, Recipe recipe);
Ejemplo n.º 2
0
 // constructor (SPAWNER)
 public Pitcher(Player player)
 {
     newRecipe     = new Recipe(player);
     cupsRemaining = 25;
 }
Ejemplo n.º 3
0
 public void DisplayProfit(Recipe recipe)
 {
     profit = totalcustomers * recipe.pricePerCup;
     Console.WriteLine("The profit from today's sale is $" + profit + "!");
 }