예제 #1
0
 public TrafficDriver(string cfmFile, TrafficDriverDirection direction)
 {
     Vehicle = new Vehicle(cfmFile);
     //Vehicle.SteeringSpeed = 7;
     _direction = direction;
     if (direction == TrafficDriverDirection.Forward)
     {
         VirtualLane = MaxVirtualLanes - 1;
     }
     else
     {
         VirtualLane = 1;
     }
 }
예제 #2
0
 public TrafficDriver(string cfmFile, TrafficDriverDirection direction)
 {
     Vehicle = new Vehicle(cfmFile);
     //Vehicle.SteeringSpeed = 7;
     _direction = direction;
     if (direction == TrafficDriverDirection.Forward)
     {
         VirtualLane = MaxVirtualLanes - 1;
     }
     else
     {
         VirtualLane = 1;
     }
 }