public bool Equals(Animal that) { if ((object)that == null) { return false; } if (that.petName.Equals(this.petName) && that.type == this.type && that.mood == this.mood && that.vitality == this.vitality) { return true; } return false; }
public void toxic(Animal target) { this.moodUp(); target.injured(); target.moodDown(); }
public void attack(Animal target) { this.moodDown(); target.injured(); }
public void addAnimal(Animal animal) { this.animals.Add(animal); }