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); }
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); }
public void OverloadAllCarnivores(CarnivoreParams parameters) { // Implement parameter cloning!!! Carnivores.ForEach(i => i.Params = parameters); }
public void WeightLossCycle() { Herbivores.ForEach(i => i.UpdateWeight()); Carnivores.ForEach(i => i.UpdateWeight()); }
public void AgeCycle() { Herbivores.ForEach(i => i.GrowOlder()); Carnivores.ForEach(i => i.GrowOlder()); }
public void DeathCycle() { Carnivores.ForEach(i => i.Death()); Herbivores.ForEach(i => i.Death()); }