public void Return(Human human) { switch (human.Profession) { case Human.ProfessionType.Agent: { FreeAgents.Add(human); break; } case Human.ProfessionType.Operative: { FreeOperatives.Add(human); break; } case Human.ProfessionType.Scientist: { FreeScientists.Add(human); break; } case Human.ProfessionType.D_Personnel: { FreeD_Personnel.Add(human); break; } } }
public void Hire(Human newHuman) { newHuman.ID = GetNewHumanID(); People.Add(newHuman.ID, newHuman); switch (newHuman.Profession) { case Human.ProfessionType.Agent: { FreeAgents.Add(newHuman); AgentsCount++; break; } case Human.ProfessionType.Operative: { FreeOperatives.Add(newHuman); OperativesCount++; break; } case Human.ProfessionType.Scientist: { FreeScientists.Add(newHuman); ScientistsCount++; break; } case Human.ProfessionType.D_Personnel: { FreeD_Personnel.Add(newHuman); D_PersonnelCount++; break; } } }