X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FYASim%2FEngine.hpp;h=135deab34e94ae2d971fa16a0bbb248199552808;hb=d66903e9ad63b91182ccc25d9bb82f18f8dd98b6;hp=edbe15d3d2cb76f10979c0fa1ff147f48e8d4580;hpb=b1c964030d7cb8fc5a161cd40c5ea0300021290e;p=flightgear.git diff --git a/src/FDM/YASim/Engine.hpp b/src/FDM/YASim/Engine.hpp index edbe15d3d..135deab34 100644 --- a/src/FDM/YASim/Engine.hpp +++ b/src/FDM/YASim/Engine.hpp @@ -4,6 +4,7 @@ namespace yasim { class PistonEngine; +class TurbineEngine; // // Interface for the "Engine" part of a PropEngine object. This is a @@ -15,6 +16,7 @@ class PistonEngine; class Engine { public: virtual PistonEngine* isPistonEngine() { return 0; } + virtual TurbineEngine* isTurbineEngine() { return 0; } void setThrottle(float throttle) { _throttle = throttle; } void setStarter(bool starter) { _starter = starter; } @@ -28,9 +30,12 @@ public: virtual bool isCranking() { return false; } virtual void calc(float pressure, float temp, float speed) = 0; + virtual void stabilize() {} + virtual void integrate(float dt) {} virtual float getTorque() = 0; virtual float getFuelFlow() = 0; + virtual ~Engine() {} protected: float _throttle; bool _starter; // true=engaged, false=disengaged