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