Ejemplo n.º 1
0
 public void HireWorker(WorkerType type, Building sourceBuilding) //Source building => building that the hiring was started from.
 {
     if (type == WorkerType.excavator)                            //Excavators aren't assigned to a building, hired only from HQ.
     {
         popMan.HireNewWorker(type,
                              null,
                              buildMan.GetVacantBed(),
                              simMan.currentDate);
     }
     else
     {
         popMan.HireNewWorker(type,
                              sourceBuilding,
                              buildMan.GetVacantBed(),
                              simMan.currentDate);
     }
 }