private void MakeFinalistsToCompetitors()
        {
            for (int i = 0; i < MatchNodeFinalists.Count; i++)
            {
                if (MatchNodeRule.IsGameFull(this))
                {
                    break;
                }


                FinalistData finalist = MatchNodeFinalists[i];

                ITeam compeditor = finalist.GetCompeditor();


                if (!compeditor.Equals(DummyTeamCreator.DummyTeamInstance))
                {
                    if (!IsTeamACompetitor(compeditor))
                    {
                        CompetitorData toAdd = new CompetitorData(compeditor);
                        MatchNodeBattleResult.Add(toAdd);
                        MatchNodeConnectedFinalists.Add(finalist);
                    }
                }
            }
        }
Esempio n. 2
0
 public void AddFinalist(INode node, MatchOutcome pos)
 {
     EndNodeFinalist = new FinalistData(node, pos);
 }
 public void AddFinalist(FinalistData finalist)
 {
     MatchNodeFinalists.Add(finalist);
 }
 public void RemoveFinalist(FinalistData finalist)
 {
     MatchNodeFinalists.Remove(finalist);
 }