]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIAircraft.hxx
Oops, make sure that one of the default splash screens gets used when the splash...
[flightgear.git] / src / AIModel / AIAircraft.hxx
index 759cca93c36e780357229b0ebd86c996493c190e..8cf2a40364c53be58b0085269e13dd9fb448d8d2 100644 (file)
@@ -29,16 +29,35 @@ SG_USING_STD(string);
 
 
 class FGAIAircraft : public FGAIBase {
+
+private:
+
+       typedef struct {
+            double accel;
+            double decel;
+            double climb_rate;
+            double descent_rate;
+            double takeoff_speed;
+            double climb_speed;
+            double cruise_speed;
+            double descent_speed;
+            double land_speed;
+       } PERF_STRUCT;
        
 public:
+
+        enum aircraft_e {LIGHT=0, WW2_FIGHTER, JET_TRANSPORT, JET_FIGHTER};
+        static const PERF_STRUCT settings[];
        
        FGAIAircraft();
        ~FGAIAircraft();
        
        bool init();
+        virtual void bind();
+        virtual void unbind();
        void update(double dt);
 
-        void SetPerformance(PERF_STRUCT ps);
+        void SetPerformance(const PERF_STRUCT *ps);
         void AccelTo(double speed);
         void PitchTo(double angle);
         void RollTo(double angle);
@@ -53,7 +72,7 @@ private:
 
         double dt; 
 
-        PERF_STRUCT performance;
+        const PERF_STRUCT *performance;
 
        void Run(double dt);
         double sign(double x);