X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATC%2FAIGAVFRTraffic.hxx;h=9aabd87466cd7a6245d8b66935d867262d20ed2e;hb=4a79d82ba62fa4e5be759fa0fc4b20220e8da303;hp=c094f60a437fa61b1dc76abbccf7cf40380df5b3;hpb=409dee5a9d3348babe750413a81191fa090d5926;p=flightgear.git diff --git a/src/ATC/AIGAVFRTraffic.hxx b/src/ATC/AIGAVFRTraffic.hxx index c094f60a4..9aabd8746 100644 --- a/src/ATC/AIGAVFRTraffic.hxx +++ b/src/ATC/AIGAVFRTraffic.hxx @@ -17,7 +17,7 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #ifndef _FG_AIGAVFRTraffic_HXX #define _FG_AIGAVFRTraffic_HXX @@ -25,10 +25,6 @@ #include #include
-#include "tower.hxx" -#include "AIPlane.hxx" -#include "ATCProjection.hxx" -#include "ground.hxx" #include "AILocalTraffic.hxx" #include @@ -42,9 +38,9 @@ public: ~FGAIGAVFRTraffic(); // Init en-route to destID at point pt. (lat, lon, elev) (elev in meters, lat and lon in degrees). - bool Init(Point3D pt, string destID, const string& callsign); + bool Init(const Point3D& pt, const string& destID, const string& callsign); // Init at srcID to fly to destID - bool Init(string srcID, string destID, const string& callsign, OperatingState state = PARKED); + bool Init(const string& srcID, const string& destID, const string& callsign, OperatingState state = PARKED); // Run the internal calculations void Update(double dt); @@ -87,8 +83,8 @@ private: double stall_speed_landing_config; // environment - some of this might get moved into FGAIPlane - SGPropertyNode* wind_from_hdg; //degrees - SGPropertyNode* wind_speed_knots; //knots + SGPropertyNode_ptr wind_from_hdg; //degrees + SGPropertyNode_ptr wind_speed_knots; //knots atc_type changeFreqType; // the service we need to change to