Exemple #1
0
 public void FreeWorkers(int x)
 {
     if (x > workersCount)
     {
         x = workersCount;
     }
     workersCount -= x;
     colony.AddWorkers(x);
 }
Exemple #2
0
 virtual public void FreeWorkers(int x)
 {
     if (workersCount == 0)
     {
         return;
     }
     if (x > workersCount)
     {
         x = workersCount;
     }
     workersCount -= x;
     colony.AddWorkers(x);
 }