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