]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIFlightPlan.hxx
Boris Koenig:
[flightgear.git] / src / AIModel / AIFlightPlan.hxx
index 9eaf570291f4b40e206fc61595554553ff2d11aa..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);
 
@@ -40,9 +45,14 @@ public:
    bool finished;
    bool gear_down;
    bool flaps_down;
+   bool on_ground;
   } waypoint;
 
    FGAIFlightPlan(string filename);
+  FGAIFlightPlan(FGAIModelEntity *entity,
+                double course,
+                FGAirport *dep,
+                FGAirport *arr);
    ~FGAIFlightPlan();
 
    waypoint* getPreviousWaypoint( void );
@@ -57,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;