X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2Fperformancedata.hxx;h=a8aef6400e3b46ec76585d8b54b3a50194b94c36;hb=d70e26d87b5294315ca6d67b8c11fabe51abbc4b;hp=41b89ca7ced8599a2f8ae0ee717bb4ecfd18b9d4;hpb=9ab41ea15809c02ba46bf9e6911fbb1aa808b8b1;p=flightgear.git diff --git a/src/AIModel/performancedata.hxx b/src/AIModel/performancedata.hxx index 41b89ca7c..a8aef6400 100644 --- a/src/AIModel/performancedata.hxx +++ b/src/AIModel/performancedata.hxx @@ -5,6 +5,7 @@ #include class FGAIAircraft; +class SGPropertyNode; /** Data storage for aircraft performance data. This is used to properly simulate the flight of AIAircrafts. @@ -14,19 +15,12 @@ Data storage for aircraft performance data. This is used to properly simulate th class PerformanceData { public: - PerformanceData(double acceleration, - double deceleration, - double climbRate, - double descentRate, - double vRotate, - double vTakeOff, - double vClimb, - double vCruise, - double vDescent, - double vApproach, - double vTouchdown, - double vTaxi); - PerformanceData(const std::string& filename); + PerformanceData(); + + PerformanceData(PerformanceData* clone); + + void initFromProps(SGPropertyNode* props); + ~PerformanceData(); double actualSpeed(FGAIAircraft* ac, double tgt_speed, double dt, bool needMaxBrake); @@ -52,6 +46,7 @@ public: inline double vTouchdown () { return _vTouchdown; }; inline double vCruise () { return _vCruise; }; + double decelerationOnGround() const; private: double _acceleration; double _deceleration;