]> git.mxchange.org Git - flightgear.git/commitdiff
Add simple getter for all runways to FGAirport
authorTorsten Dreyer <torsten@ŧ3r.de>
Fri, 27 Mar 2015 23:33:26 +0000 (00:33 +0100)
committerTorsten Dreyer <torsten@ŧ3r.de>
Fri, 27 Mar 2015 23:33:26 +0000 (00:33 +0100)
src/Airports/airport.cxx
src/Airports/airport.hxx

index 750ccac8221613bfc756e41eeb2042ca9845635a..60a711bf567cf6d30d646754e602e9f7801134c9 100644 (file)
@@ -314,6 +314,14 @@ bool FGAirport::hasHardRunwayOfLengthFt(double aLengthFt) const
   return false;
 }
 
+//------------------------------------------------------------------------------
+FGRunwayList FGAirport::getRunways() const
+{
+  loadRunways();
+
+  return mRunways;
+}
+
 //------------------------------------------------------------------------------
 FGRunwayList FGAirport::getRunwaysWithoutReciprocals() const
 {
index 6713e77d1a25248cdaed202b239998b70d1b9fb2..b9155d68dc5c6a799b7f6c8b01a6aa83bbbe7bc9 100644 (file)
@@ -130,6 +130,11 @@ class FGAirport : public FGPositioned
      * an airport *once*, not *twice* - eg mapping and nav-display code.
      */
     FGRunwayList getRunwaysWithoutReciprocals() const;
+
+    /**
+     * Retrieve all runways at the airport
+     */
+    FGRunwayList getRunways() const;
     
      /**
      * Useful predicate for FMS/GPS/NAV displays and similar - check if this