]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Engine.hpp
latest updates from JSBSim
[flightgear.git] / src / FDM / YASim / Engine.hpp
index edbe15d3d2cb76f10979c0fa1ff147f48e8d4580..135deab34e94ae2d971fa16a0bbb248199552808 100644 (file)
@@ -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