]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/route_mgr.hxx
Merge branch 'attenuation' into navaids-radio
[flightgear.git] / src / Autopilot / route_mgr.hxx
index 31336f96ad56181a2b9b7af820753865a7726701..2b3409b131202664105c21b20afac191a9707678 100644 (file)
@@ -35,6 +35,8 @@ class SGPath;
 class PropertyWatcher;
 
 class FGAirport;
+class FGRunway;
+
 typedef SGSharedPtr<FGAirport> FGAirportRef;
 
 /**
@@ -92,6 +94,8 @@ public:
     
   flightgear::Waypt* wayptAtIndex(int index) const;
              
+  SGPropertyNode_ptr wayptNodeAtIndex(int index) const;
+             
   /**
    * Find a waypoint in the route, by position, and return its index, or
    * -1 if no matching waypoint was found in the route.
@@ -134,6 +138,12 @@ public:
      *  - navaid/radial-deg/offset-nm
      */
     flightgear::WayptRef waypointFromString(const std::string& target);
+    
+    FGAirportRef departureAirport() const;
+    FGAirportRef destinationAirport() const;
+    
+    FGRunway* departureRunway() const;
+    FGRunway* destinationRunway() const;
 private:
   flightgear::WayptVec _route;
   int _currentIndex;