Ejemplo n.º 1
0
    public void addScientistsForTransfer(EmployeeTransfer et, List <string> scientists)
    {
        if (et.getScientists() != scientists.Count)
        {
            Debug.Log("Something went wrong");
        }

        foreach (string s in scientists)
        {
            this.addHiredScientist(s);
            occupiedLivingSpace++;
        }
    }
Ejemplo n.º 2
0
    public List <string> removeScientistsForTransfer(EmployeeTransfer et)
    {
        List <string> removedScientists = new List <string>();

        for (int i = 0; i < et.getScientists(); i++)
        {
            string scientist = hiredScientists.Last.Value;
            hiredScientists.Remove(scientist);
            removedScientists.Add(scientist);
            occupiedLivingSpace--;
        }
        return(removedScientists);
    }
Ejemplo n.º 3
0
 public List<string> removeScientistsForTransfer(EmployeeTransfer et)
 {
     List<string> removedScientists = new List<string>();
     for (int i = 0; i < et.getScientists(); i++)
     {
         string scientist = hiredScientists.Last.Value;
         hiredScientists.Remove(scientist);
         removedScientists.Add(scientist);
         occupiedLivingSpace--;
     }
     return removedScientists;
 }
Ejemplo n.º 4
0
    public void addScientistsForTransfer(EmployeeTransfer et, List<string> scientists)
    {
        if (et.getScientists() != scientists.Count) Debug.Log("Something went wrong");

        foreach (string s in scientists)
        {
            this.addHiredScientist(s);
            occupiedLivingSpace++;
        }
    }