]> 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 023ad85a093f2b97e905377e8677e03ef3e13490..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;