Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Cup" /> class.
 /// </summary>
 /// <param name="listOfTeamsInCup">The list of <see cref="Team" />s in <see cref="Cup" />.</param>
 /// <param name="listOfRefereesInCup">The list of <see cref="Referee" />s in <see cref="Cup" />.</param>
 /// <param name="name">The name of the new <see cref="Cup"/>.</param>
 public Cup(List <Team> listOfTeamsInCup, List <Referee> listOfRefereesInCup, string name)
 {
     this.listOfTeamsInCup    = new List <Team>(listOfTeamsInCup);
     this.listOfRefereesInCup = new List <Referee>(listOfRefereesInCup);
     this.name   = name;
     random      = new Random();
     matchEngine = new MatchEngine();
     isFinished  = false;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Cup"/> class.
 /// </summary>
 public Cup()
 {
     listOfTeamsInCup    = new List <Team>();
     listOfRefereesInCup = new List <Referee>();
     name        = "New Cup";
     random      = new Random();
     matchEngine = new MatchEngine();
     isFinished  = false;
 }