]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/groundnetwork.hxx
Bugfix: Retrieval of the next radio frequency was broken. Contributed by Adrian Musceac.
[flightgear.git] / src / Airports / groundnetwork.hxx
index 857fb0314cc8721122ed5b44111fe2ee758d7930..a493426872df45c5803f8082e8a376f0ec75c7f9 100644 (file)
@@ -150,6 +150,7 @@ public:
   void setCourseDiff(double crse);
 
 
+
   
 };
 
@@ -181,6 +182,7 @@ public:
     routes = rts;
     distance = dist; 
     currNode = nodes.begin();
+    currRoute = routes.begin();
 //    depth = dpth;
   };
 
@@ -211,6 +213,8 @@ public:
   
   void first() { currNode = nodes.begin(); currRoute = routes.begin(); };
   int size() { return nodes.size(); };
+  int nodesLeft() { return nodes.end() - currNode; };
+
 //  int getDepth() { return depth; };
 };
 
@@ -224,6 +228,8 @@ class FGGroundNetwork : public FGATCController
 {
 private:
   bool hasNetwork;
+  bool networkInitialized;
+  time_t nextSave;
   //int maxDepth;
   int count;
   FGTaxiNodeVector    nodes;
@@ -286,8 +292,10 @@ public:
   bool checkTransmissionState(int minState, int MaxState, TrafficVectorIterator i, time_t now, AtcMsgId msgId,
                                AtcMsgDir msgDir);
   bool checkForCircularWaits(int id);
-  virtual void render();
+  virtual void render(bool);
+  virtual string getName();
 
+  void saveElevationCache();
 };