]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/trafficcontrol.hxx
fix + define WITH_POINT_TO_POINT
[flightgear.git] / src / ATC / trafficcontrol.hxx
index 98e85d2205477da3c7404579a4b46a0c5ea52539..d6a59384c0dbc175582935bab5a1e48ffd3e12c8 100644 (file)
@@ -241,9 +241,10 @@ typedef vector<ActiveRunway>::iterator ActiveRunwayVecIterator;
 class FGATCController
 {
 private:
-     bool initialized;
+    
 
 protected:
+  bool initialized;
   bool available;
   time_t lastTransmission;
 
@@ -273,7 +274,13 @@ public:
       MSG_HOLD_POSITION,
       MSG_ACKNOWLEDGE_HOLD_POSITION,
       MSG_RESUME_TAXI,
-      MSG_ACKNOWLEDGE_RESUME_TAXI } AtcMsgId;
+      MSG_ACKNOWLEDGE_RESUME_TAXI,
+      MSG_REPORT_RUNWAY_HOLD_SHORT,
+      MSG_ACKNOWLEDGE_REPORT_RUNWAY_HOLD_SHORT,
+      MSG_SWITCH_TOWER_FREQUENCY,
+      MSG_ACKNOWLEDGE_SWITCH_TOWER_FREQUENCY
+  } AtcMsgId;
+
   typedef enum {
       ATC_AIR_TO_GROUND,
       ATC_GROUND_TO_AIR } AtcMsgDir;
@@ -293,11 +300,11 @@ public:
 
   double getDt() { return dt_count; };
   void   setDt(double dt) { dt_count = dt;};
-  void transmit(FGTrafficRecord *rec, AtcMsgId msgId, AtcMsgDir msgDir, bool audible);
+  void transmit(FGTrafficRecord *rec, FGAirportDynamics *parent, AtcMsgId msgId, AtcMsgDir msgDir, bool audible);
   string getGateName(FGAIAircraft *aircraft);
   virtual void render(bool) = 0;
   virtual string getName()  = 0;
-
+  int calculate_attenuation(FGTrafficRecord * rec, FGAirportDynamics *parent, int ground_to_air);
 
 private: