public int EatPlant(IPlant p) { if (p != null) { return(p.GetEatenQuantity(this.biteSize)); } return(0); }
public int EatPlant(IPlant plant) { if (plant != null) { ++this.Size; return(plant.GetEatenQuantity(this.biteSize)); } return(0); }