Example #1
0
 //------------------------------------------------------------------
 public Indicators(Road road)
     : base(road)
 {
     this.road = road;
     LocalPosition = new Vector2 (10);
     Fixed = true;
 }
Example #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> ();
        }
Example #3
0
 //------------------------------------------------------------------
 public Indicators(Road road) : base(road)
 {
     this.road     = road;
     LocalPosition = new Vector2(10);
     Anchored      = true;
 }
Example #4
0
 //------------------------------------------------------------------
 private void UpdateComponents(float elapsed)
 {
     Road.Update(elapsed);
     director.Update(elapsed);
 }
Example #5
0
 //------------------------------------------------------------------
 public Manager(Game game)
     : base(game)
 {
     Road = new Road (Game);
     director = new Director (this);
 }