public override void Consume(IConsumable item) { calorieIntake += item.Calories; if (item.IsSpicy) { calorieIntake -= 10; } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); Console.WriteLine(" "); }
public override void Consume(IConsumable item) { // provide override for Consume if (item.IsSpicy) { calorieIntake -= 5; } calorieIntake += item.Calories; ConsumptionHistory.Add(item); item.GetInfo(); }
public override void Consume(IConsumable item) { if (IsFull) { System.Console.WriteLine("I'm full bro."); return; } calorieIntake += item.Calories; ConsumptionHistory.Add(item); item.GetInfo(); }
public override void Consume(IConsumable item) { // provide override for Consume if (IsFull) { Console.WriteLine("Sorry I am full"); } else { calorieIntake += item.Calories; ConsumptionHistory.Add(item); } }
public override void Consume(IConsumable item) { if (IsFull) { Console.WriteLine("SweetTooth is full"); } else { calorieIntake += item.Calories; } ConsumptionHistory.Add(item); item.GetInfo(); }
public override void Consume(IConsumable item) { if (IsFull) { Console.WriteLine($"Too full. Can't consume anymore."); return; } int newCalories = (item.IsSweet) ? item.Calories + 10 : item.Calories; calorieIntake += newCalories; ConsumptionHistory.Add(item); Console.WriteLine("Sweet Tooth consumes - " + item.GetInfo()); }
// When a SweetTooth "Consumes": // If NOT Full // - adds calorie value to SweetTooth's total calorieIntake (+10 additional calories if the consumable item is "Sweet") // - adds the randomly selected IConsumable object to SweetTooth's ConsumptionHistory list // - calls the IConsumable object's GetInfo() method public override void Consume(IConsumable item) { if (item.IsSweet) { calorieIntake += (item.Calories + 10); } else { calorieIntake += item.Calories; } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); }
// provide override for IsFull (Full at 1200 Calories) public override void Consume(IConsumable item) { // provide override for Consume if (!IsFull) { if (item.IsSpicy) { calorieIntake -= 5; } calorieIntake += item.Calories; ConsumptionHistory.Add(item); System.Console.WriteLine(item.GetInfo()); } }
// public SpiceHound() : base() // { // Console.WriteLine("Constructor SpiceHound"); // } public override void Consume(IConsumable item) { if (!IsFull) { calorieIntake += item.Calories; if (item.IsSpicy) { calorieIntake -= 5; } ConsumptionHistory.Add(item); item.GetInfo(); } item.GetInfo(); }
public override void Consume(iConsumable item) { bool AppetiteOrNoAppetite = this.IsFull; if (AppetiteOrNoAppetite == false) { calorieIntake = calorieIntake + item.calories; ConsumptionHistory.Add(item); } if (AppetiteOrNoAppetite == true) { Console.WriteLine("Is full!!!!!!!"); } }
// provide override for IsFull (Full at 1500 Calories) public override void Consume(IConsumable item) { // provide override for Consume if (IsFull == false) { if (item.IsSweet == true) { calorieIntake += 10; } calorieIntake += item.Calories; ConsumptionHistory.Add(item); item.GetInfo(); } }
// public SweetTooth() // { // Console.WriteLine("Constructor SweetTooth"); // } public override void Consume(IConsumable item) { item.GetInfo(); if (!IsFull) { calorieIntake += item.Calories; if (item.IsSweet) { calorieIntake += 10; } // Console.WriteLine("SweetTooth consuming " + item.Name + " Calories: " + item.Calories + " Intake = " + calorieIntake); ConsumptionHistory.Add(item); item.GetInfo(); } }
// provide override for IsFull (Full at 1500 Calories) public override void Consume(IConsumable item) { if (!IsFull) { int caloriesToAdd = item.Calories; if (item.IsSweet) { caloriesToAdd += 10; } calorieIntake += caloriesToAdd; ConsumptionHistory.Add(item); System.Console.WriteLine(item.GetInfo()); } // provide override for Consume }
public override void Consume(IConsumable item) { if (IsFull) { System.Console.WriteLine("I couldn't eat another bite!"); } else { calorieIntake += item.Calories; if (item.IsSpicy) { calorieIntake -= 5; } ConsumptionHistory.Add(item); item.GetInfo(); } }
public override void Consume(IConsumable item) { if (!IsFull) { calorieIntake += item.Calories; if (item.IsSweet) { calorieIntake += 10; } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); } else { Console.WriteLine("Too many sweets. You're going to get cavities!"); } }
public override void Consume(IConsumable item) { if (IsFull) { Console.WriteLine("SpiceHound is full and cannot eat anymore."); } else { calorieIntake += item.Calories; if (item.IsSpicy) { calorieIntake -= 5; } ConsumptionHistory.Add(item); Console.WriteLine(item.getInfo()); } }
public override void Consume(IConsumable item) { if (!IsFull) { calorieIntake += item.Calories; if (item.IsSweet) { calorieIntake += 10; } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); } else { System.Console.WriteLine("cannot eat any more"); } }
public override void Consume(IConsumable item) { if (IsFull == false) { if (item.IsSpicy) { calorieIntake -= 5; } calorieIntake += item.Calories; ConsumptionHistory.Add(item); item.GetInfo(); } else { Console.WriteLine("The SpiceHound is full and can't eat another bite!"); } }
public override void Consume(IConsumable item) { if (!IsFull) { calorieIntake += item.Calories; if (item.IsSpicy) { calorieIntake -= 5; } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); } else { Console.WriteLine("Can't handle the spice with this amount of calories!"); } }
public override void Consume(IConsumable item) { if (!IsFull) { calorieIntake += item.Calories; if (item.IsSweet) { calorieIntake += 10; } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); } else { Console.WriteLine("You fullfilled you Sweet Tooth for today!"); } }
public override void Consume(IConsumable item) { if (!IsFull) { calorieIntake += item.Calories; if (item.IsSpicy) { calorieIntake -= 5; } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); } else { Console.WriteLine("I am full!"); } }
public override void Consume(IConsumable item) { if (!IsFull) { calorieIntake += item.Calories; if (item.IsSweet) { calorieIntake -= 5; } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); } else { Console.WriteLine("Wow! That was definitely spicy!"); } }
public override void Consume(IConsumable item) { if (IsFull == false) { calorieIntake += item.Calories; ConsumptionHistory.Add(item); item.GetInfo(); if (item.IsSweet) { calorieIntake += 10; } } else { Console.WriteLine("The SweetTooth is full and cannot eat anymore."); } }
public override void Consume(IConsumable item) { if (this.IsFull == false) { this.calorieIntake += item.Calories; if (item.IsSpicy == true) { this.calorieIntake -= 5; } ConsumptionHistory.Add(item); item.GetInfo(); } else { System.Console.WriteLine("SpiceHound is full."); } }
public override void Consume(IConsumable item) { if (isFull == false) { calorieIntake += item.Calories; if (item.IsSpicy == true) { calorieIntake -= 5; } ConsumptionHistory.Add(item); item.GetInfo(); } if (isFull == true) { Console.WriteLine("Ninja is full and cannot eat more"); } }
public override void Consume(IConsumable item) { if (!IsFull) { calorieIntake += item.Calories; if (item.IsSweet) { calorieIntake += 10; Console.WriteLine($"{Name} says: OH that's so sweet!"); } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); } else { Console.WriteLine($"{Name} says: My tum tum hurts too much"); } }
public override void Consume(IConsumable item) { if (IsFull == false) { calorieIntake += item.Calories; ConsumptionHistory.Add(item); Console.WriteLine($"{item.Name} was served. Spicy? {item.IsSpicy}. Sweet?{item.IsSweet}. Calories: {item.Calories}"); } else { Console.WriteLine($"SpiceHound is too full"); if (item.IsSpicy == true) { Console.WriteLine("Didn't know you can lose calories from eating spices."); calorieIntake -= 5; } } }
public override void Consume(IConsumable item) { if (!IsFull) { calorieIntake += item.Calories; if (item.IsSpicy) { calorieIntake -= 5; Console.WriteLine($"{Name} says: Hot Hot Hot!!!"); } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); } else { Console.WriteLine($"{Name} says: My tum tum hurts too much"); } }
public override void Consume(IConsumable item) { // provide override for Consume if (!IsFull) { calorieIntake += item.Calories; if (item.IsSpicy) { calorieIntake -= 5; } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); } else { System.Console.WriteLine("I'm way to full, Please no more!"); } }
public override void Consume(IConsumable item) { // provide override for Consume if (IsFull is false) { calorieIntake += item.Calories; if (item.IsSpicy is true) { calorieIntake -= 5; } ConsumptionHistory.Add(item); Console.WriteLine(item.GetInfo()); if (calorieIntake > 1200) { Console.WriteLine("SpicyTooth is Full and can't take anymore!!!!!!!!!!!!"); } } }