X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTraffic%2FSchedule.hxx;h=1f508271bb78a5c8ff6f3c13a59da61b7744c704;hb=f8a8805e2dde01e0c0a962c283880fa60fa23f0f;hp=bfda8c0fe4e4ea532d7febf14628b60d3e1e325e;hpb=b090d3dabce3ad1261fb4b514cb71ed0c8a4d29b;p=flightgear.git diff --git a/src/Traffic/Schedule.hxx b/src/Traffic/Schedule.hxx index bfda8c0fe..1f508271b 100644 --- a/src/Traffic/Schedule.hxx +++ b/src/Traffic/Schedule.hxx @@ -59,6 +59,7 @@ class FGAISchedule bool firstRun; double courseToDest; bool initialized; + bool valid; void scheduleFlights(); @@ -115,12 +116,16 @@ class FGAISchedule 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;};