protected Animal(string name, int age, AnimalSex sex) { this.Name = name; this.Age = age; this.Sex = sex; }
public Kitten(string name, AnimalSex sex, int age) : base(name, sex, age) { if (sex != AnimalSex.female) { throw new ArgumentException("Kittens must be female"); } }
public Tomcat(string name, AnimalSex sex, int age) : base(name, sex, age) { if (sex != AnimalSex.male) { throw new ArgumentException("Tomcats must be male"); } }
public AnimalBehaviourComponent(Entity parent, AnimalSex sex, AnimalDiet diet, int foodChainLevel, int breedability, string presetName, float oxygenConsumption, float co2Production, int foodDrop, float birthDrop) : base(parent) { this.Sex = sex; this.Diet = diet; this.FoodChainLevel = foodChainLevel; this.PresetName = presetName; this.Breedability = breedability; this.Satiated = 80.0f; this.oxygenConsumption = oxygenConsumption; this.co2Production = co2Production; this.FoodDrop = foodDrop; this.BirthDrop = birthDrop; }
public Dog(string name, int age, AnimalSex sex) : base(name, age, sex) { this.Sound = "I'm a dog. Wuff Wuff !"; }
//constructor public Cat(int age, string name, AnimalSex sex) : base(age, name, sex) { }
//constructor public Animal(int age, string name, AnimalSex sex) { this.age = age; this.name = name; this.sex = sex; }
public Frog(string name, int age, AnimalSex sex) : base(name, age, sex) { this.Sound = "I'm a frog. Rubbut Rubbut !"; }
public Cat(string name, int age, AnimalSex sex) : base(name, age, sex) { }
public Animal(string name, AnimalSex sex, int age) { this.name = name; this.sex = sex; this.age = age; }
public Cat(string name, AnimalSex sex, int age) : base(name, sex, age) { }
public Dog(string name, AnimalSex sex, int age) : base(name, sex, age) { }