Exemple #1
0
 /// <summary>
 /// Spawn new bugs, if needed.
 /// </summary>
 private void spawnBug()
 {
     if (Bugs.Insects.Count < bugLimit &&
         Bugs.insectDelay < 0 &&
         Bugs.insectCountDown > 0)
     {
         Bugs.NeuesInsekt(random);
         Bugs.insectDelay = SimulationSettings.Custom.BugRespawnDelay;
         Bugs.insectCountDown--;
     }
     Bugs.insectDelay--;
 }
Exemple #2
0
 /// <summary>
 /// Erzeugt neue Ameisen.
 /// </summary>
 /// <param name="colony">betroffenes Volk</param>
 private void spawnAnt(CoreColony colony)
 {
     if (colony.Insects.Count < antLimit &&
         colony.insectDelay < 0 &&
         colony.insectCountDown > 0)
     {
         colony.NeuesInsekt(random);
         colony.insectDelay = SimulationSettings.Custom.AntRespawnDelay;
         colony.insectCountDown--;
     }
     colony.insectDelay--;
 }