}
}
+
/*
There are two possible scenarios during initialisation:
The first is that the user is flying towards the airport, and hence the traffic
return(true);
}
+
+// Return what type of landing we're doing on this circuit
+LandingType FGAILocalTraffic::GetLandingOption() {
+ if(circuitsToFly) {
+ return(touchAndGo ? TOUCH_AND_GO : STOP_AND_GO);
+ } else {
+ return(FULL_STOP);
+ }
+}
+
+
// Commands to do something from higher level logic
void FGAILocalTraffic::FlyCircuits(int numCircuits, bool tag) {
//cout << "FlyCircuits called" << endl;
// Run the internal calculations
void FGAILocalTraffic::Update(double dt) {
//cout << "A" << flush;
- double responseTime = 10.0; // seconds - this should get more sophisticated at some point
+ //double responseTime = 10.0; // seconds - this should get more sophisticated at some point
responseCounter += dt;
if((contactTower) && (responseCounter >= 8.0)) {
// Acknowledge request before changing frequency so it gets rendered if the user is on the same freq
// Go out and practice circuits
void FlyCircuits(int numCircuits, bool tag);
+ // Return what type of landing we're doing on this circuit
+ LandingType GetLandingOption();
+
// TODO - this will get more complex and moved into the main class
// body eventually since the position approved to taxi to will have
// to be passed.