]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/dynamics.hxx
Interim windows build fix
[flightgear.git] / src / Airports / dynamics.hxx
index 85c98b9d8e054e34214870ae3b7b93fb3f7ada3b..cef41fa48434bb89a7e87dd3880faf5e0964a886 100644 (file)
 #include <simgear/structure/SGReferenced.hxx>
 
 #include <ATC/trafficcontrol.hxx>
+#include <ATC/GroundController.hxx>
+
 #include "airports_fwd.hxx"
 #include "parking.hxx"
-#include "groundnetwork.hxx"
 #include "runwayprefs.hxx"
 
 class ParkingAssignment
@@ -66,12 +67,13 @@ private:
     ParkingSet occupiedParkings;
 
 
+    std::auto_ptr<FGGroundNetwork> groundNetwork;
 
     FGRunwayPreference   rwyPrefs;
     FGStartupController  startupController;
-    FGGroundNetwork      groundNetwork;
     FGTowerController    towerController;
     FGApproachController approachController;
+    FGGroundController   groundController;
 
     time_t lastUpdate;
     std::string prevTrafficType;
@@ -98,7 +100,7 @@ private:
                                bool skipEmptyAirlineCode);
 public:
     FGAirportDynamics(FGAirport* ap);
-    ~FGAirportDynamics();
+    virtual ~FGAirportDynamics();
 
     void addAwosFreq     (int val) {
         freqAwos.push_back(val);
@@ -158,8 +160,8 @@ public:
     FGStartupController    *getStartupController()    {
         return &startupController;
     };
-    FGGroundNetwork        *getGroundNetwork()        {
-        return &groundNetwork;
+    FGGroundController        *getGroundController()        {
+        return &groundController;
     };
     FGTowerController      *getTowerController()      {
         return &towerController;
@@ -168,6 +170,11 @@ public:
         return &approachController;
     };
 
+    FGGroundNetwork* getGroundNetwork() const
+    {
+        return groundNetwork.get();
+    }
+
     int getGroundFrequency(unsigned leg);
     int getTowerFrequency  (unsigned nr);