Exemple #1
0
        public int ResetMigrationParameter()
        {
            var migrations = Carnivores.Where(i => i.Migrated).Count() + Herbivores.Where(i => i.Migrated).Count();

            Carnivores.ForEach(i => i.Migrated = false);
            Herbivores.ForEach(i => i.Migrated = false);
            return(migrations);
        }
Exemple #2
0
        public int ResetGivenBirthParameter()
        {
            var births = Carnivores.Where(i => i.GivenBirth).Count() + Herbivores.Where(i => i.GivenBirth).Count();

            Carnivores.ForEach(i => i.GivenBirth = false);
            Herbivores.ForEach(i => i.GivenBirth = false);
            return(births);
        }
Exemple #3
0
 public void OverloadAllCarnivores(CarnivoreParams parameters)
 {
     // Implement parameter cloning!!!
     Carnivores.ForEach(i => i.Params = parameters);
 }
Exemple #4
0
 public void WeightLossCycle()
 {
     Herbivores.ForEach(i => i.UpdateWeight());
     Carnivores.ForEach(i => i.UpdateWeight());
 }
Exemple #5
0
 public void AgeCycle()
 {
     Herbivores.ForEach(i => i.GrowOlder());
     Carnivores.ForEach(i => i.GrowOlder());
 }
Exemple #6
0
 public void DeathCycle()
 {
     Carnivores.ForEach(i => i.Death());
     Herbivores.ForEach(i => i.Death());
 }