]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIFlightPlan.hxx
Ground network distance tracking code. AIAircraft taxiing at airports
[flightgear.git] / src / AIModel / AIFlightPlan.hxx
index 755b672ecaf5e37b2b5c65dd80d8a841c9f348ec..28f285b171bd77ee44e7d4ebcb43a3e8dd83797e 100644 (file)
@@ -48,6 +48,7 @@ public:
    bool gear_down;
    bool flaps_down;
    bool on_ground;
+    int routeIndex;  // For AI/ATC purposes;
   } waypoint;
 
    FGAIFlightPlan(const string& filename);
@@ -93,8 +94,11 @@ public:
   void setRepeat(bool r) { repeat = r; };
   bool getRepeat(void) const { return repeat; };
   void restart(void);
+  int getNrOfWayPoints() { return waypoints.size(); };
+  int getRouteIndex(int i); // returns the AI related index of this current routes. 
+  FGTaxiRoute *getTaxiRoute() { return taxiRoute; };
+  void deleteTaxiRoute();
   
-  int getNrOfWayPoints() { return waypoints.end() - waypoints.begin(); };
 
 private:
   FGRunway rwy;
@@ -112,7 +116,8 @@ private:
   int leg;
   int gateId;
   string activeRunway;
-  FGAirRoute route;
+  FGAirRoute airRoute;
+  FGTaxiRoute *taxiRoute;
 
 
   Point3D temp;