]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/parking.cxx
Overhaul the ground-net / parking code.
[flightgear.git] / src / Airports / parking.cxx
index d1fb6512f5978c4d78c09b7a940807f76931beab..032a12549c50beb4dc58f92365d3b068438e2efd 100644 (file)
 #include <string>
 
 #include "parking.hxx"
-#include "groundnetwork.hxx"
 
 /*********************************************************************************
  * FGParking
  ********************************************************************************/
-// FGParking::FGParking(double lat,
-//                  double lon,
-//                  double hdg,
-//                  double rad,
-//                  int idx,
-//                  const string &name,
-//                  const string &tpe,
-//                  const string &codes)
-//   : FGTaxiNode(lat,lon,idx)
-// {
-//   heading      = hdg;
-//   parkingName  = name;
-//   type         = tpe;
-//   airlineCodes = codes;
-// }
-FGParking::~FGParking() {
-     delete pushBackRoute; 
+
+FGParking::FGParking(PositionedID aGuid, const SGGeod& pos,
+                     double aHeading, double aRadius,
+                     const std::string& name, const std::string& aType,
+                     const std::string& codes,
+                     PositionedID pushBackNode) :
+  FGTaxiNode(aGuid, pos, false, 0),
+  heading(aHeading),
+  radius(aRadius),
+  parkingName(name),
+  type(aType),
+  airlineCodes(codes),
+  pushBackPoint(pushBackNode)
+{
+}
+
+FGParking::~FGParking()
+{
 }