Exemple #1
0
 public override void Consume(IConsumable item)
 {
     calorieIntake += item.Calories;
     if (item.IsSpicy)
     {
         calorieIntake -= 10;
     }
     ConsumptionHistory.Add(item);
     Console.WriteLine(item.GetInfo());
     Console.WriteLine(" ");
 }
Exemple #2
0
 public override void Consume(IConsumable item)
 {
     // provide override for Consume
     if (item.IsSpicy)
     {
         calorieIntake -= 5;
     }
     calorieIntake += item.Calories;
     ConsumptionHistory.Add(item);
     item.GetInfo();
 }
Exemple #3
0
 public override void Consume(IConsumable item)
 {
     if (IsFull)
     {
         System.Console.WriteLine("I'm full bro.");
         return;
     }
     calorieIntake += item.Calories;
     ConsumptionHistory.Add(item);
     item.GetInfo();
 }
Exemple #4
0
 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());
        }
Exemple #7
0
 // 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());
 }
Exemple #8
0
 // 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());
     }
 }
Exemple #9
0
        // 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();
        }
Exemple #10
0
    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!!!!!!!");
        }
    }
Exemple #11
0
 // 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();
     }
 }
Exemple #12
0
 // 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();
     }
 }
Exemple #13
0
        // 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
        }
Exemple #14
0
 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();
     }
 }
Exemple #15
0
 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!");
     }
 }
Exemple #16
0
 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());
     }
 }
Exemple #17
0
 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!");
     }
 }
Exemple #19
0
 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!");
     }
 }
Exemple #20
0
 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!");
     }
 }
Exemple #21
0
 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!");
     }
 }
Exemple #22
0
 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!");
     }
 }
Exemple #23
0
 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.");
     }
 }
Exemple #24
0
 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.");
     }
 }
Exemple #25
0
        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");
            }
        }
Exemple #26
0
 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");
     }
 }
Exemple #27
0
 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;
         }
     }
 }
Exemple #28
0
 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");
     }
 }
Exemple #29
0
 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!");
     }
 }
Exemple #30
0
 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!!!!!!!!!!!!");
         }
     }
 }