X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATC%2FAIGAVFRTraffic.hxx;h=9aabd87466cd7a6245d8b66935d867262d20ed2e;hb=4a79d82ba62fa4e5be759fa0fc4b20220e8da303;hp=e2bbb5733b5fe596b7b3ba81b407133b790afa2f;hpb=afb654a068ffed6e8157530c0a4d8fcc39e7d0f9;p=flightgear.git diff --git a/src/ATC/AIGAVFRTraffic.hxx b/src/ATC/AIGAVFRTraffic.hxx index e2bbb5733..9aabd8746 100644 --- a/src/ATC/AIGAVFRTraffic.hxx +++ b/src/ATC/AIGAVFRTraffic.hxx @@ -17,20 +17,14 @@ // // 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 -#include -#include #include #include
-#include "tower.hxx" -#include "AIPlane.hxx" -#include "ATCProjection.hxx" -#include "ground.hxx" #include "AILocalTraffic.hxx" #include @@ -44,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); @@ -89,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