]> git.mxchange.org Git - flightgear.git/blob - src/FDM/YASim/SimpleJet.hpp
Replace round by simgear::SGMiscd::roundToInt()
[flightgear.git] / src / FDM / YASim / SimpleJet.hpp
1 #ifndef _SIMPLEJET_HPP
2 #define _SIMPLEJET_HPP
3
4 #include "Thruster.hpp"
5
6 namespace yasim {
7
8 // As simple a Thruster subclass as you can find. It makes thrust.  Period.
9 class SimpleJet : public Thruster
10 {
11 public:
12     SimpleJet();
13     void setThrust(float thrust);
14     virtual bool isRunning();
15     virtual bool isCranking();
16     virtual void getThrust(float* out);
17     virtual void getTorque(float* out);
18     virtual void getGyro(float* out);
19     virtual float getFuelFlow();
20     virtual void integrate(float dt);
21     virtual void stabilize();
22 private:
23     float _thrust;
24 };
25
26 }; // namespace yasim
27 #endif // _SIMPLEJET_HPP