コード例 #1
0
ファイル: Race.cs プロジェクト: slasher79/OpenNFS1
 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);
     }
 }
コード例 #2
0
ファイル: Race.cs プロジェクト: STPKITT/OpenNFS1
 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);
     }
 }