private string FoodTypeToEat(AnimalFoodType foodType) { switch (foodType) { case AnimalFoodType.Carnivorous: return("meat"); case AnimalFoodType.Herbivorous: return("grass and vegetables"); case AnimalFoodType.Ambivorous: return("everything eadible"); default: return("some illegall stuff"); } }
public AnimalFood(AnimalFoodType foodType, uint amount) { this.FoodType = foodType; this.Amount = amount; }