示例#1
0
 //Set the empty Competition details with a name
 public Competition(string name)
 {
     Participants = new List <IParticipant>();
     Tracks       = new Queue <Track>();
     Name         = name;
     DriverPoints = new RaceDetails <DriverPoints>();
 }
示例#2
0
 //Set the Competition details with a name
 public Competition(List <IParticipant> Participants, Queue <Track> Tracks, string name)
 {
     Participants      = new List <IParticipant>();
     this.Participants = Participants;
     this.Tracks       = Tracks;
     Name         = name;
     DriverPoints = new RaceDetails <DriverPoints>();
 }