//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>(); }
//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>(); }