public override void Eat(AbstractCharacter character) { Grass grass = (Grass)character; life += grass.GetLife() / 2; }
public override void Eat(AbstractCharacter character) { Sheep sheep = (Sheep)character; life += sheep.GetLife() / 2; }
public override void Eat(AbstractCharacter character) { Console.WriteLine("Grass can't eat"); }
abstract public void Eat(AbstractCharacter character);