]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIFlightPlan.hxx
Set the format default to float instead of int.
[flightgear.git] / src / AIModel / AIFlightPlan.hxx
index 50040e554714e48a4047b80788ae7f3083846451..8cc6bb888238c9faba99e32146e2d041217a5619 100644 (file)
 #include <simgear/compiler.h>
 #include <vector>
 #include <string>
+
+#include <Airports/simple.hxx>
+
+#include "AIBase.hxx"
+
 SG_USING_STD(vector);
 SG_USING_STD(string);
 
@@ -44,12 +49,10 @@ public:
   } waypoint;
 
    FGAIFlightPlan(string filename);
-  FGAIFlightPlan(string filename, 
-                double lat, 
-                double lon, 
-                double alt, 
-                double speed, 
-                double course);
+  FGAIFlightPlan(FGAIModelEntity *entity,
+                double course,
+                FGAirport *dep,
+                FGAirport *arr);
    ~FGAIFlightPlan();
 
    waypoint* getPreviousWaypoint( void );
@@ -64,6 +67,8 @@ public:
    double getBearing(waypoint* previous, waypoint* next);
    double getBearing(double lat, double lon, waypoint* next);
 
+  void    create(FGAirport *dep, FGAirport *arr, double alt, double speed);
+
 private:
 
     typedef vector <waypoint*> wpt_vector_type;