]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/approach.hxx
don't set the callsign, but use the set one
[flightgear.git] / src / ATC / approach.hxx
index 41e32f22ad9458093197a7d27a1d82f4cabe6b90..9109e45210b6c5ecb4c1fccc4f699c0ea6ff27b2 100644 (file)
@@ -153,14 +153,14 @@ public:
   // Add new plane to stack if not already registered 
   // Input:  pid - id of plane (name) 
   // Output: "true" if added; "false" if already existend
-  void AddPlane(string pid);
+  void AddPlane(const string& pid);
 
   // Remove plane from stack if out of range
   int RemovePlane();
   
   inline double get_bucket() const { return bucket; }
   inline int get_pnum() const { return num_planes; }
-  inline string get_trans_ident() { return trans_ident; }
+  inline const string& get_trans_ident() { return trans_ident; }
   
 private:
 
@@ -176,6 +176,8 @@ private:
 
   double angle_diff_deg( const double &a1, const double &a2);
 
+  void set_message(const string &s);
+
 // ========================================================================
 // get point2 given starting point1 and course and distance
 // input:  point1 = heading in degrees, distance