class PropertyWatcher;
class FGAirport;
+class FGRunway;
+
typedef SGSharedPtr<FGAirport> FGAirportRef;
/**
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.
* - 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;