Exemple #1
0
    public static void RemoveAll(EmployeeManager WorkPlace)
    {
        if (WorkPlace.getCount() <= 0) return;

        for(int i = 1; i < WorkPlace.getCount(); i++)
        {
            BackToOwner(WorkPlace.getList()[0]);
        }
    }
Exemple #2
0
    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;
 }