bool firstRun;
double courseToDest;
bool initialized;
+ bool valid;
void scheduleFlights();
void setrunCount(unsigned int count) { runCount = count; };
void setHits (unsigned int count) { hits = count; };
- void setScore () { score = runCount ? ((double) hits / (double) runCount) : 0; };
+ void setScore ();
double getScore () { return score; };
+ void setHeading ();
+ void assign (FGScheduledFlight *ref) { flights.push_back(ref); };
+ void setFlightType (string val ) { flightType = val; };
FGScheduledFlight*findAvailableFlight (const string ¤tDestination, const string &req);
// 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); };
+ void taint() { valid = false; };
//void * getAiRef () { return AIManagerRef; };
//FGAISchedule* getAddress () { return this;};