Пример #1
0
        public void addMinion(Minion minion)
        {
            if (minion.effectPhase.Equals(Minion.MinionType.Start))
            {
                startTurnMinion.Add(minion);
                return;
            }

            if (minion.effectPhase.Equals(Minion.MinionType.End))
            {
                endTurnMinion.Add(minion);
                return;
            }

            if (minion.effectPhase.Equals(Minion.MinionType.OnAttack))
            {
                onAttackMinion.Add(minion);
                return;
            }

            if (minion.effectPhase.Equals(Minion.MinionType.Ongoing))
            {
                ongoingMinion.Add(minion);
                return;
            }
            else
            {
                return;
            }
        }
Пример #2
0
        internal void removeMinion(Minion minion)
        {
            if (minion.effectPhase.Equals(Minion.MinionType.Start))
            {
                startTurnMinion.Remove(minion);
                return;
            }

            if (minion.effectPhase.Equals(Minion.MinionType.End))
            {
                endTurnMinion.Remove(minion);
                return;
            }

            if (minion.effectPhase.Equals(Minion.MinionType.OnAttack))
            {
                onAttackMinion.Remove(minion);
                return;
            }

            if (minion.effectPhase.Equals(Minion.MinionType.Ongoing))
            {
                ongoingMinion.Remove(minion);
                return;
            }
            else
            {
                return;
            }
        }