示例#1
0
 //------------------------------------------------------------------
 public Indicators(Road road)
     : base(road)
 {
     this.road = road;
     LocalPosition = new Vector2 (10);
     Fixed = true;
 }
示例#2
0
        //------------------------------------------------------------------
        public Lane(Road road, int id)
            : base(road)
        {
            ID = id;
            Road = road;
            Fixed = true;

            CalculatePosition ();
            CalculateVelocity ();

            Cars = new List <Car> ();
            newCars = new List <Car> ();
        }
示例#3
0
 //------------------------------------------------------------------
 public Indicators(Road road) : base(road)
 {
     this.road     = road;
     LocalPosition = new Vector2(10);
     Anchored      = true;
 }
示例#4
0
 //------------------------------------------------------------------
 private void UpdateComponents(float elapsed)
 {
     Road.Update(elapsed);
     director.Update(elapsed);
 }
示例#5
0
 //------------------------------------------------------------------
 public Manager(Game game)
     : base(game)
 {
     Road = new Road (Game);
     director = new Director (this);
 }