Esempio n. 1
0
    public void Send(Human human)
    {
        switch (human.Profession)
        {
        case Human.ProfessionType.Agent:
        {
            FreeAgents.Remove(human);
            break;
        }

        case Human.ProfessionType.Operative:
        {
            FreeOperatives.Remove(human);
            break;
        }

        case Human.ProfessionType.Scientist:
        {
            FreeScientists.Remove(human);
            break;
        }

        case Human.ProfessionType.D_Personnel:
        {
            FreeD_Personnel.Remove(human);
            break;
        }
        }
    }
Esempio n. 2
0
    public void Kill(Human human)
    {
        switch (human.Profession)
        {
        case Human.ProfessionType.Agent:
        {
            if (FreeAgents.Contains(human))
            {
                FreeAgents.Remove(human);
            }
            AgentsCount--;
            break;
        }

        case Human.ProfessionType.Operative:
        {
            if (FreeOperatives.Contains(human))
            {
                FreeOperatives.Remove(human);
            }
            OperativesCount--;
            break;
        }

        case Human.ProfessionType.Scientist:
        {
            if (FreeScientists.Contains(human))
            {
                FreeScientists.Remove(human);
            }
            ScientistsCount--;
            break;
        }

        case Human.ProfessionType.D_Personnel:
        {
            if (FreeD_Personnel.Contains(human))
            {
                FreeD_Personnel.Remove(human);
            }
            D_PersonnelCount--;
            break;
        }
        }
        People.Remove(human.ID);
    }