]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/parking.cxx
Overhaul the ground-net / parking code.
[flightgear.git] / src / Airports / parking.cxx
index ce3181fa496ba64162be75203e63a57d60e1bfc9..032a12549c50beb4dc58f92365d3b068438e2efd 100644 (file)
 #  include <config.h>
 #endif
 
-//#include <algorithm>
-
 #include <simgear/compiler.h>
 
-//#include <plib/sg.h>
-//#include <plib/ul.h>
-
-//#include <Environment/environment_mgr.hxx>
-//#include <Environment/environment.hxx>
-//#include <simgear/misc/sg_path.hxx>
-//#include <simgear/props/props.hxx>
-//#include <simgear/structure/subsystem_mgr.hxx>
-//#include <simgear/debug/logstream.hxx>
-//#include <Main/globals.hxx>
-//#include <Main/fg_props.hxx>
-//#include <Airports/runways.hxx>
-
-#include STL_STRING
+#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()
+{
 }