X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FAirports%2Fparking.hxx;h=9966553651229e2414bc8692dca4db87b0a3b8a4;hb=46ec7a6ff78b0718c6eb09e5abb45c67c153d2f5;hp=6d8892c802d6307cce06f42996013d42f07fd6fe;hpb=45e3b7e2d19e7b0d1201f849c852bae5b6b3005b;p=flightgear.git diff --git a/src/Airports/parking.hxx b/src/Airports/parking.hxx index 6d8892c80..996655365 100644 --- a/src/Airports/parking.hxx +++ b/src/Airports/parking.hxx @@ -36,7 +36,7 @@ #include // for std::auto_ptr #include "gnnode.hxx" - +#include class FGParking : public FGTaxiNode { @@ -46,24 +46,16 @@ private: const std::string parkingName; const std::string type; const std::string airlineCodes; - const PositionedID pushBackPoint; + FGTaxiNodeRef pushBackPoint; SG_DISABLE_COPY(FGParking); public: - FGParking(PositionedID aGuid, const SGGeod& pos, + FGParking(int index, + const SGGeod& pos, double heading, double radius, const std::string& name, const std::string& type, - const std::string& codes, - PositionedID pushBackNode); + const std::string& codes); virtual ~FGParking(); -#if 0 - void setHeading (double hdg) { heading = hdg; }; - void setRadius (double rad) { radius = rad; }; - - void setName (const std::string& name) { parkingName = name; }; - void setType (const std::string& tpe) { type = tpe; }; - void setCodes (const std::string& codes){ airlineCodes= codes;}; -#endif double getHeading () const { return heading; }; double getRadius () const { return radius; }; @@ -72,7 +64,11 @@ public: std::string getCodes () const { return airlineCodes;}; std::string getName () const { return parkingName; }; - int getPushBackPoint () { return pushBackPoint; }; + // TODO do parkings have different name and ident? + virtual const std::string& name() const { return parkingName; } + + void setPushBackPoint(const FGTaxiNodeRef& node); + FGTaxiNodeRef getPushBackPoint () { return pushBackPoint; }; bool operator< (const FGParking &other) const { return radius < other.radius; };