]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/tower.hxx
Add an overloaded function
[flightgear.git] / src / ATC / tower.hxx
index 13a0b6833af3dde33233101364fafd4e99e590aa..7e44c4df1e1799c06b7f2d1abf7612bc6fa24d34 100644 (file)
@@ -135,6 +135,12 @@ public:
        inline atc_type GetType() { return TOWER; }
        
        inline FGGround* GetGroundPtr() { return ground; }
+       
+       // Returns true if positions of crosswind/downwind/base leg turns should be constrained by previous traffic
+       // plus the constraint position as a rwy orientated orthopos (meters)
+       bool GetCrosswindConstraint(double& cpos);
+       bool GetDownwindConstraint(double& dpos);
+       bool GetBaseConstraint(double& bpos);
 
 private:
        FGATCMgr* ATCmgr;       
@@ -220,10 +226,10 @@ private:
        string trans_ident;             // transmitted ident
        bool tower_failed;              // tower failed?
        
-    // Pointers to current users position and orientation
-    SGPropertyNode* user_lon_node;
-    SGPropertyNode* user_lat_node;
-    SGPropertyNode* user_elev_node;
+       // Pointers to current users position and orientation
+       SGPropertyNode* user_lon_node;
+       SGPropertyNode* user_lat_node;
+       SGPropertyNode* user_elev_node;
        SGPropertyNode* user_hdg_node;
        
        // Details of the general traffic flow etc in the circuit