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