from project.animals.animal import Bird
from project.food import Meat, Vegetable, Fruit

class Owl(Bird):
    def make_sound(self):
        return "Hoot Hoot"

    def feed(self, food):
        if not isinstance(food, Meat):
            return f"{self.__class__.__name__} does not eat {food.__class__.__name__}!"
        self.feed_animal(0.25, food.quantity)

class Hen(Bird):
    def make_sound(self):
        return "Cluck"

    def feed(self, food):
        self.feed_animal(0.35, food.quantity)

# owl = Owl("Pip", 10, 10)
# print(owl)
# meat = Meat(4)
# print(owl.make_sound())
# owl.feed(meat)
# veg = Vegetable(1)
# print(owl.feed(veg))
# print(owl)
# hen = Hen("Harry", 10, 10)
# veg = Vegetable(3)
# fruit = Fruit(5)
# meat = Meat(1)
# print(hen)
# print(hen.make_sound())
# hen.feed(veg)
# hen.feed(fruit)
# hen.feed(meat)
# print(hen)
from project.animals.animal import Bird
from project.food import Meat, Vegetable, Fruit

class Owl(Bird):
    def make_sound(self):
        return "Hoot Hoot"

    def feed(self, food):
        if not isinstance(food, Meat):
            return f"{self.__class__.__name__} does not eat {food.__class__.__name__}!"
        self.feed_animal(0.25, food.quantity)

class Hen(Bird):
    def make_sound(self):
        return "Cluck"

    def feed(self, food):
        self.feed_animal(0.35, food.quantity)

# owl = Owl("Pip", 10, 10)
# print(owl)
# meat = Meat(4)
# print(owl.make_sound())
# owl.feed(meat)
# veg = Vegetable(1)
# print(owl.feed(veg))
# print(owl)
# hen = Hen("Harry", 10, 10)
# veg = Vegetable(3)
# fruit = Fruit(5)
# meat = Meat(1)
# print(hen)
# print(hen.make_sound())
# hen.feed(veg)
# hen.feed(fruit)
# hen.feed(meat)
# print(hen)
# owl = Owl("Pip", 10, 10) # print(owl) # meat = Meat(4) # print(owl.make_sound()) # owl.feed(meat) # veg = Vegetable(1) # print(owl.feed(veg)) # print(owl) # hen = Hen("Harry", 10, 10) # veg = Vegetable(3) # fruit = Fruit(5) # meat = Meat(1) # print(hen) # print(hen.make_sound()) # hen.feed(veg) # hen.feed(fruit) # hen.feed(meat) # print(hen)