double score;
unsigned int runCount;
unsigned int hits;
+ unsigned int lastRun;
bool firstRun;
double courseToDest;
bool initialized;
bool valid;
- void scheduleFlights();
+ void scheduleFlights(time_t now);
+ int groundTimeFromRadius();
/**
* Transition this schedule from distant mode to AI mode;
void setHeading ();
void assign (FGScheduledFlight *ref) { flights.push_back(ref); };
void setFlightType (string val ) { flightType = val; };
- FGScheduledFlight*findAvailableFlight (const string ¤tDestination, const string &req);
+ FGScheduledFlight*findAvailableFlight (const string ¤tDestination, const string &req, time_t min=0, time_t max=0);
// used to sort in decending order of score: I've probably found a better way to
// decending order sorting, but still need to test that.
- bool operator< (const FGAISchedule &other) const { return (score > other.score); };
+ bool operator< (const FGAISchedule &other) const;
void taint() { valid = false; };
+ int getLastUsed() { return lastRun; };
+ void setLastUsed(unsigned int val) {lastRun = val; };
//void * getAiRef () { return AIManagerRef; };
//FGAISchedule* getAddress () { return this;};