X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTraffic%2FSchedFlight.hxx;h=0ee3eb6bd1f9c5b3056daa27b0488810ec53c59b;hb=b3d59ed5636cc416f83db0fd5f2698759af944fb;hp=63ba6c7fd403746a44cdb7a560aa95520b5d49f9;hpb=667e64e1ebc86a0c53112b92b53475898f315c36;p=flightgear.git diff --git a/src/Traffic/SchedFlight.hxx b/src/Traffic/SchedFlight.hxx index 63ba6c7fd..0ee3eb6bd 100644 --- a/src/Traffic/SchedFlight.hxx +++ b/src/Traffic/SchedFlight.hxx @@ -55,11 +55,14 @@ private: FGAirport *arrivalPort; string depId; string arrId; + string requiredAircraft; time_t departureTime; time_t arrivalTime; time_t repeatPeriod; int cruiseAltitude; + bool initialized; + bool available; @@ -74,7 +77,8 @@ public: int cruiseAlt, const string& deptime, const string& arrtime, - const string& rep + const string& rep, + const string& reqAC ); ~FGScheduledFlight(); @@ -99,11 +103,19 @@ public: time_t processTimeString(const string& time); const string& getCallSign() {return callsign; }; + const string& getRequirement() { return requiredAircraft; } + + void lock() { available = false; }; + void release() { available = true; }; + + bool isAvailable() { return available; }; }; typedef vector FGScheduledFlightVec; typedef vector::iterator FGScheduledFlightVecIterator; +typedef std::map < std::string, FGScheduledFlightVec > FGScheduledFlightMap; + bool compareScheduledFlights(FGScheduledFlight *a, FGScheduledFlight *b);