]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/trafficcontrol.hxx
- Added ultra-light traffic is now a separate traffic class that can have its
[flightgear.git] / src / Airports / trafficcontrol.hxx
index 18aea60f3890444abf736d4b47a978637ad43487..be687d16da9eb4711ea577aee519aa4685517dd2 100644 (file)
@@ -58,6 +58,7 @@ private:
   bool changeSpeed;
   bool changeHeading;
   bool changeAltitude;
+  bool resolveCircularWait;
 
   double speed;
   double heading;
@@ -76,19 +77,23 @@ public:
   double getHeading     () { return heading; };
   double getAlt         () { return alt; };
 
+  bool getCheckForCircularWait() { return resolveCircularWait; };
+
   void setHoldPattern   (bool val) { holdPattern    = val; };
   void setHoldPosition  (bool val) { holdPosition   = val; };
   void setChangeSpeed   (bool val) { changeSpeed    = val; };
   void setChangeHeading (bool val) { changeHeading  = val; };
   void setChangeAltitude(bool val) { changeAltitude = val; };
 
+  void setResolveCircularWait (bool val) { resolveCircularWait = val; }; 
+
   void setSpeed       (double val) { speed   = val; };
   void setHeading     (double val) { heading = val; };
   void setAlt         (double val) { alt     = val; };
 };
 
 
-/**************************************************************************************
+/**
  * class FGATCController
  * NOTE: this class serves as an abstraction layer for all sorts of ATC controller. 
  *************************************************************************************/
@@ -131,7 +136,7 @@ private:
   
   
 public:
-  FGTrafficRecord() {};
+  FGTrafficRecord();
   
   void setId(int val)  { id = val; };
   void setRadius(double rad) { radius = rad;};
@@ -170,6 +175,9 @@ public:
 
   void setWaitsForId(int id) { waitsForId = id; };
 
+  void setResolveCircularWait()   { instruction.setResolveCircularWait(true);  };
+  void clearResolveCircularWait() { instruction.setResolveCircularWait(false); };
+
   string getRunway() { return runway; };
   void setCallSign(string clsgn) { callsign = clsgn; };
   string getCallSign() { return callsign; };