Exemple #1
0
 public Race(int nbrLaps, Track track, PlayerDriver player)
 {
     _nbrLaps    = nbrLaps;
     Player      = player;
     Track       = track;
     PlayerStats = new PlayerRaceStats();
     Drivers     = new List <IDriver>();
     AddDriver(player);
     if (track.Description.IsOpenRoad)
     {
         _trafficController = new TrafficController(this);
     }
 }
Exemple #2
0
 public Race(int nbrLaps, Track track, PlayerDriver player)
 {
     _nbrLaps = nbrLaps;
     Player = player;
     Track = track;
     PlayerStats = new PlayerRaceStats();
     Drivers = new List<IDriver>();
     AddDriver(player);
     if (track.Description.IsOpenRoad)
     {
         _trafficController = new TrafficController(this);
     }
 }