- time_t getDepartureTime () { return flights.begin()->getDepartureTime (); };
- FGAirport * getDepartureAirport () { return flights.begin()->getDepartureAirport(); };
- FGAirport * getArrivalAirport () { return flights.begin()->getArrivalAirport (); };
- int getCruiseAlt () { return flights.begin()->getCruiseAlt (); };
- // More member functions follow later
+ double getSpeed ();
+ //void setClosestDistanceToUser();
+ bool next(); // forces the schedule to move on to the next flight.
+
+ // TODO: rework these four functions
+ time_t getDepartureTime () { return (*flights.begin())->getDepartureTime (); };
+ FGAirport * getDepartureAirport () { return (*flights.begin())->getDepartureAirport(); };
+ FGAirport * getArrivalAirport () { return (*flights.begin())->getArrivalAirport (); };
+ int getCruiseAlt () { return (*flights.begin())->getCruiseAlt (); };
+ double getRadius () { return radius; };
+ double getGroundOffset () { return groundOffset;};
+ const string& getFlightType () { return flightType;};
+ const string& getAirline () { return airline; };
+ const string& getAircraft () { return acType; };
+ const string& getCallSign () { return (*flights.begin())->getCallSign (); };
+ const string& getRegistration () { return registration;};
+ const string& getFlightRules () { return (*flights.begin())->getFlightRules (); };
+ bool getHeavy () { return heavy; };
+ double getCourse () { return courseToDest; };
+ unsigned int getRunCount () { return runCount; };
+ unsigned int getHits () { return hits; };
+
+ void setrunCount(unsigned int count) { runCount = count; };
+ void setHits (unsigned int count) { hits = count; };
+ void setScore ();
+ double getScore () { return score; };
+ 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 * getAiRef () { return AIManagerRef; };
+ //FGAISchedule* getAddress () { return this;};