#include "parking.hxx"
#include "groundnetwork.hxx"
#include "runwayprefs.hxx"
+#include "sidstar.hxx"
//typedef vector<float> DoubleVec;
//typedef vector<float>::iterator DoubleVecIterator;
FGParkingVec parkings;
FGRunwayPreference rwyPrefs;
+ FGSidStar SIDs;
FGStartupController startupController;
FGGroundNetwork groundNetwork;
FGTowerController towerController;
string atisInformation;
string chooseRunwayFallback();
- bool innerGetActiveRunway(const string &trafficType, int action, string &runway);
+ bool innerGetActiveRunway(const string &trafficType, int action, string &runway, double heading);
+ string chooseRwyByHeading(stringVec rwys, double heading);
public:
FGAirportDynamics(FGAirport* ap);
FGAirportDynamics(const FGAirportDynamics &other);
double getElevation() const;
const string& getId() const;
- void getActiveRunway(const string& trafficType, int action, string& runway);
+ void getActiveRunway(const string& trafficType, int action, string& runway, double heading);
void addParking(FGParking& park);
bool getAvailableParking(double *lat, double *lon,
//const string &getName() const { return _name;};
// Returns degrees
+ // Departure / Arrival procedures
+ FGSidStar * getSIDs() { return &SIDs; };
+ FGAIFlightPlan * getSID(string activeRunway, double heading);
+
// ATC related functions.
FGStartupController *getStartupController() { return &startupController; };
FGTowerController *getTowerController() { return &towerController; };
const string& getAtisInformation() { return atisInformation; };
- int getGroundFrequency(int leg); //{ return freqGround.size() ? freqGround[0] : 0; };
+ int getGroundFrequency(unsigned leg); //{ return freqGround.size() ? freqGround[0] : 0; };
void setRwyUse(const FGRunwayPreference& ref);
};