Example #1
0
 public Hen(string name, double weight, double wingSize, int food) : base(name, weight, wingSize, food)
 {
     FoodEaten.Add("Vegetable");
     FoodEaten.Add("Meat");
     FoodEaten.Add("Seed");
     FoodEaten.Add("Fruit");
 }
Example #2
0
 public Cat(string name, double weight, string breed, string livingRegion, int food) : base(name, weight, breed, livingRegion, food)
 {
     FoodEaten.Add("Vegetable");
     FoodEaten.Add("Meat");
 }
Example #3
0
 private void EatFood(FoodEaten foodEaten)
 {
     _hunger -= foodEaten.Food.HungerRecovery.Amount;
 }
Example #4
0
 public Owl(string name, double weight, double wingSize, int food) : base(name, weight, wingSize, food)
 {
     FoodEaten.Add("Meat");
 }
Example #5
0
 public Mouse(string name, double weight, string livingRegion, int food) : base(name, weight, livingRegion, food)
 {
     FoodEaten.Add("Vegetable");
     FoodEaten.Add("Fruit");
 }
Example #6
0
 private void FoodEaten(FoodEaten obj)
 {
     Audio.PlaySound("EatFood");
 }
Example #7
0
 public Tiger(string name, double weight, string livingRegion, string breed, int food) : base(name, weight, livingRegion, breed, food)
 {
     FoodEaten.Add("Meat");
 }
Example #8
0
 public Dog(string name, double weight, string livingRegion, int food) : base(name, weight, livingRegion, food)
 {
     FoodEaten.Add("Meat");
 }