]> git.mxchange.org Git - flightgear.git/blobdiff - src/Traffic/Schedule.hxx
Canvas: Add new element type map for geo mapping.
[flightgear.git] / src / Traffic / Schedule.hxx
index 27385ed0d3e0a515a5710f17cb983d7f26e174c3..a85d46df6be5aecbdfc7faff828f6a25b57e359e 100644 (file)
@@ -63,6 +63,7 @@ class FGAISchedule
   bool valid;
 
   void scheduleFlights(time_t now);
+  int groundTimeFromRadius();
   
   /**
    * Transition this schedule from distant mode to AI mode;
@@ -90,6 +91,8 @@ class FGAISchedule
 
   ~FGAISchedule(); //destructor
 
+    static bool validModelPath(const std::string& model);
+    
   bool update(time_t now, const SGVec3d& userCart);
   bool init();
 
@@ -127,7 +130,7 @@ class FGAISchedule
   // decending order sorting, but still need to test that.
   bool operator< (const FGAISchedule &other) const;
     void taint() { valid = false; };
-    int getLastUsed() { return (int) valid;};
+    int getLastUsed() { return lastRun; };
     void setLastUsed(unsigned int val) {lastRun = val; }; 
   //void * getAiRef                 () { return AIManagerRef; };
   //FGAISchedule* getAddress        () { return this;};