Пример #1
0
 public virtual void EndStep()
 {
     if (AliveStatus)
     {
         if (ColonyWillDie())
         {
             AliveStatus = false;
         }
     }
     else
     {
         if (NeighbourCounter == birthNeedNeighbors)
         {
             WorldFiller.NewRandomColony(IndexOfColony);
         }
     }
 }
Пример #2
0
 protected void Die()
 {
     WorldFiller.NewColony(IndexOfColony, false);
 }