X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAirports%2Frunwaybase.hxx;h=e13101b19d99d418dbf721871157ffe37cdef828;hb=c068049d840c2f4567c7d07e7fb37247d8e23407;hp=aa34df7a747915b689ca534d0d6c2fa0343a4933;hpb=9bb896dd20341fe1cd003dec9733bb5bd19807df;p=flightgear.git diff --git a/src/Airports/runwaybase.hxx b/src/Airports/runwaybase.hxx index aa34df7a7..e13101b19 100644 --- a/src/Airports/runwaybase.hxx +++ b/src/Airports/runwaybase.hxx @@ -28,7 +28,7 @@ #include -#include "Navaids/positioned.hxx" +#include #include @@ -39,12 +39,11 @@ class FGRunwayBase : public FGPositioned { public: - FGRunwayBase(Type aTy, const std::string& aIdent, + FGRunwayBase(PositionedID aGuid, Type aTy, const std::string& aIdent, const SGGeod& aGeod, const double heading, const double length, const double width, - const int surface_code, - bool index); + const int surface_code); /** * Retrieve a position on the extended centerline. Positive values @@ -52,18 +51,19 @@ public: * opposited direction. 0.0 corresponds to the (non-displaced) threshold */ SGGeod pointOnCenterline(double aOffset) const; + SGGeod pointOffCenterline(double aOffset, double lateralOffset) const; double lengthFt() const - { return _length; } + { return _length * SG_METER_TO_FEET; } double lengthM() const - { return _length * SG_FEET_TO_METER; } + { return _length; } double widthFt() const - { return _width; } + { return _width * SG_METER_TO_FEET; } double widthM() const - { return _width * SG_FEET_TO_METER; } + { return _width; } /** * Runway heading in degrees. @@ -84,6 +84,7 @@ public: { return _surface_code; } protected: + double _heading; double _length; double _width; @@ -98,7 +99,8 @@ protected: class FGTaxiway : public FGRunwayBase { public: - FGTaxiway(const std::string& aIdent, + FGTaxiway(PositionedID aGuid, + const std::string& aIdent, const SGGeod& aGeod, const double heading, const double length, const double width,