X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAirports%2Frunways.hxx;h=e6f97ea95d7790c30898fbcd6e4ec9c7a5bc865d;hb=386aefe69358ce41a11c9afeb8f56e26758fe56b;hp=b61b6a079ec6c45de16792b35b44380bf9e3e859;hpb=e39373cb6aa074683bfb1e63fb92c4a3c52b6c69;p=flightgear.git diff --git a/src/Airports/runways.hxx b/src/Airports/runways.hxx index b61b6a079..e6f97ea95 100644 --- a/src/Airports/runways.hxx +++ b/src/Airports/runways.hxx @@ -26,17 +26,21 @@ #include -#include "Airports/runwaybase.hxx" +#include // forward decls class FGAirport; +class FGNavRecord; +class SGPropertyNode; class FGRunway : public FGRunwayBase { FGAirport* _airport; - bool _reciprocal; + bool _isReciprocal; + FGRunway* _reciprocal; double _displ_thresh; double _stopway; + FGNavRecord* _ils; public: FGRunway(FGAirport* aAirport, const std::string& rwy_no, @@ -65,7 +69,7 @@ public: * over runways to avoid counting runways twice, if desired. */ bool isReciprocal() const - { return _reciprocal; } + { return _isReciprocal; } /** * Get the runway begining point - this is syntatic sugar, equivalent to @@ -90,7 +94,7 @@ public: double stopwayM() const { return _stopway * SG_FEET_TO_METER; } - /** + /** * Airport this runway is located at */ FGAirport* airport() const @@ -99,6 +103,18 @@ public: // FIXME - should die once airport / runway creation is cleaned up void setAirport(FGAirport* aAirport) { _airport = aAirport; } + + FGNavRecord* ILS() const { return _ils; } + void setILS(FGNavRecord* nav) { _ils = nav; } + + FGRunway* reciprocalRunway() const + { return _reciprocal; } + void setReciprocalRunway(FGRunway* other); + + /** + * Helper to process property data loaded from an ICAO.threshold.xml file + */ + void processThreshold(SGPropertyNode* aThreshold); }; #endif // _FG_RUNWAYS_HXX