]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIAircraft.hxx
Improove FGTileMgr::scenery_available for small ranges.
[flightgear.git] / src / AIModel / AIAircraft.hxx
index d609ef92aa74cff62a7b780b27692579f385acc5..fd4fd2ad0813c2423006304b6ef6ccc4c823a613 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <Traffic/SchedFlight.hxx>
 #include <Traffic/Schedule.hxx>
+#include <ATC/trafficcontrol.hxx>
 
 #include <string>
 using std::string;
@@ -63,7 +64,7 @@ public:
     
     void getGroundElev(double dt); //TODO these 3 really need to be public?
     void doGroundAltitude();
-    void loadNextLeg  ();
+    bool loadNextLeg  ();
 
     void setAcType(const string& ac) { acType = ac; };
     void setCompany(const string& comp) { company = comp;};
@@ -75,6 +76,7 @@ public:
     virtual const char* getTypeString(void) const { return "aircraft"; }
 
     // included as performance data needs them, who else?
+    inline PerformanceData* getPerformance() { return _performance; };
     inline bool onGround() const { return no_roll; };
     inline double getSpeed() const { return speed; };
     inline double getRoll() const { return roll; };
@@ -125,6 +127,7 @@ private:
     void updatePitchAngleTarget();
     void updateActualState();
     void handleATCRequests();
+    void checkVisibility();
 
     double sign(double x);