]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIGAVFRTraffic.hxx
make attribute strings lowercase with hyphen instead of underscore;
[flightgear.git] / src / ATC / AIGAVFRTraffic.hxx
index c094f60a437fa61b1dc76abbccf7cf40380df5b3..9aabd87466cd7a6245d8b66935d867262d20ed2e 100644 (file)
@@ -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
 #include <simgear/math/point3d.hxx>
 #include <Main/fg_props.hxx>
 
-#include "tower.hxx"
-#include "AIPlane.hxx"
-#include "ATCProjection.hxx"
-#include "ground.hxx"
 #include "AILocalTraffic.hxx"
 
 #include <string>
@@ -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