Esempio n. 1
0
        public bool RemoveTeam(Team team)
        {
            if (!Teams.Remove(team))
                return false;

            IEnumerator<BaseCombatant> combatants = team.GetCombatantEnumerator();
            while (combatants.MoveNext())
                RemoveCombatant(combatants.Current);

            return true;
        }
Esempio n. 2
0
        public void AddTeam(Team team)
        {
            Teams.Add(team);

            IEnumerator<BaseCombatant> combatants = team.GetCombatantEnumerator();
            while (combatants.MoveNext())
                AddCombatant(combatants.Current);
        }