public static Employee IO_Create(EmployeeManager Owner, Building OwnerBuild) { // if (HumanResource.getCount() <= 0) return null; if (Owner.getCount() >= Owner.getMaxSize()) return null; else { Employee emplo = new Employee(); emplo.OwnerBuild = OwnerBuild; Owner.add(emplo); return emplo; } }
private bool isTreeEmployeeFull(EmployeeManager emplo) { if (emplo.getCount() >= emplo.getMaxSize()) return true; else return false; }