Exemple #1
0
 public TurnBehavior(ArbiterLaneId targetLane, LinePath targetLanePath, LineList leftBound, LineList rightBound, SpeedCommand speedCommand, ArbiterInterconnectId interconnectId)
 {
     this.targetLane         = targetLane;
     this.targetLanePath     = targetLanePath;
     this.leftBound          = leftBound;
     this.rightBound         = rightBound;
     this.speedCommand       = speedCommand;
     this.ignorableObstacles = new List <int>();
     this.interconnectId     = interconnectId;
     this.VehiclesToIgnore   = new List <int>();
     this.decorators         = new List <BehaviorDecorator>();
 }
Exemple #2
0
 public TurnBehavior(ArbiterLaneId targetLane, LinePath targetLanePath, LineList leftBound, LineList rightBound, SpeedCommand speedCommand, Polygon intersectionPolygon, IEnumerable <int> ignorableObstacles, ArbiterInterconnectId interconnectId)
 {
     this.targetLane          = targetLane;
     this.targetLanePath      = targetLanePath;
     this.leftBound           = leftBound;
     this.rightBound          = rightBound;
     this.speedCommand        = speedCommand;
     this.intersectionPolygon = intersectionPolygon;
     this.ignorableObstacles  = ignorableObstacles != null ? new List <int>(ignorableObstacles) : new List <int>();
     this.interconnectId      = interconnectId;
     this.VehiclesToIgnore    = new List <int>();
     this.decorators          = new List <BehaviorDecorator>();
 }