]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIAircraft.hxx
Make the scenerio's work again (now for real) and a small number of updates.
[flightgear.git] / src / AIModel / AIAircraft.hxx
index 97227ab1b5fcf26badd3f494e18ace9891696581..33cf99e5e4e402c5964def17eec688fb7bd11cf2 100644 (file)
@@ -46,7 +46,7 @@ private:
        
 public:
 
-        enum aircraft_e {LIGHT=0, WW2_FIGHTER, JET_TRANSPORT, JET_FIGHTER};
+        enum aircraft_e {LIGHT=0, WW2_FIGHTER, JET_TRANSPORT, JET_FIGHTER, TANKER};
         static const PERF_STRUCT settings[];
        
        FGAIAircraft(FGAIManager* mgr);
@@ -67,6 +67,8 @@ public:
         void TurnTo(double heading);
         void ProcessFlightPlan( double dt );
 
+        inline void SetTanker(bool setting) { isTanker = setting; };
+
 private:
 
         bool hdg_lock;
@@ -76,9 +78,13 @@ private:
 
         const PERF_STRUCT *performance;
         bool use_perf_vs;
+        SGPropertyNode* refuel_node;
+        bool isTanker;
 
        void Run(double dt);
         double sign(double x); 
+
+        bool _getGearDown() const;
 };