]> git.mxchange.org Git - flightgear.git/blobdiff - src/Traffic/Schedule.hxx
Clean fg_init.hxx
[flightgear.git] / src / Traffic / Schedule.hxx
index 4dd8d5f001a16eec3f145313ff27c106bc91cbd1..75661bceb5fe51dae5205b2b418d7dde39ad6f68 100644 (file)
@@ -48,8 +48,7 @@ class FGAISchedule
   string currentDestination;
   bool heavy;
   FGScheduledFlightVec flights;
-  float lat;
-  float lon; 
+  SGGeod position;
   double radius;
   double groundOffset;
   double distanceToUser;
@@ -58,7 +57,14 @@ class FGAISchedule
   bool firstRun;
   double courseToDest;
 
-
+  void scheduleFlights();
+  
+  /**
+   * Transition this schedule from distant mode to AI mode;
+   * create the AIAircraft (and flight plan) and register with the AIManager
+   */
+  bool createAIAircraft(FGScheduledFlight* flight, double speedKnots, time_t deptime);
+  
  public:
   FGAISchedule();                                           // constructor
   FGAISchedule(string model, 
@@ -79,7 +85,7 @@ class FGAISchedule
 
   ~FGAISchedule(); //destructor
 
-  bool update(time_t now);
+  bool update(time_t now, const SGVec3d& userCart);
   bool init();
 
   double getSpeed         ();