//------------------------------------------------------------------
        public ChangeFreeLane(Driver driver)
        {
            this.driver = driver;
            Add (new Generic (Perform));

            //            driver.Car.Color = Color.DarkGray;
        }
Beispiel #2
0
        //------------------------------------------------------------------
        public Block(Driver driver, Car target)
        {
            this.driver = driver;
            this.target = target;

            Initial = new Generic (Start);
        }
Beispiel #3
0
        private Car closest; // Ahead

        #endregion Fields

        #region Constructors

        //------------------------------------------------------------------
        public Shrink(Driver driver)
        {
            this.driver = driver;
            Initial = new Generic (AnalyzeDistance);
        }
Beispiel #4
0
 //------------------------------------------------------------------
 public ChangeLane(Driver driver, Lane lane)
 {
     this.driver = driver;
     this.lane = lane;
     Add (new Generic (Perform));
 }
Beispiel #5
0
 //-----------------------------------------------------------------
 protected void SetDriver(Driver driver)
 {
     Remove (driver);
     Driver = driver;
     Add (driver);
 }
Beispiel #6
0
 //------------------------------------------------------------------
 public SpeedControl(Driver driver)
 {
     this.driver = driver;
     Initial = new Generic (Start);
 }
Beispiel #7
0
 //------------------------------------------------------------------
 public SafeZone(Driver driver, float scale)
 {
     this.driver = driver;
     Scale = scale;
 }