Пример #1
0
        //------------------------------------------------------------------
        public ChangeFreeLane(Driver driver)
        {
            this.driver = driver;
            Add (new Generic (Perform));

            //            driver.Car.Color = Color.DarkGray;
        }
Пример #2
0
        //------------------------------------------------------------------
        public Block(Driver driver, Car target)
        {
            this.driver = driver;
            this.target = target;

            Initial = new Generic (Start);
        }
Пример #3
0
        private Car closest; // Ahead

        #endregion Fields

        #region Constructors

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