]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIThermal.hxx
Ground network distance tracking code. AIAircraft taxiing at airports
[flightgear.git] / src / AIModel / AIThermal.hxx
index c4eb171d12c1c2fcfa8583ca91279e572faa615e..03fcd3213f5f2c04f168a92652feab3f1a236e99 100644 (file)
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 #ifndef _FG_AIThermal_HXX
 #define _FG_AIThermal_HXX
@@ -32,28 +32,32 @@ class FGAIThermal : public FGAIBase {
 
 public:
 
-       FGAIThermal(FGAIManager* mgr);
+       FGAIThermal();
        ~FGAIThermal();
        
-       bool init();
+        void readFromScenario(SGPropertyNode* scFileNode);
+
+       virtual bool init();
         virtual void bind();
         virtual void unbind();
-       void update(double dt);
+       virtual void update(double dt);
 
-        inline void setStrength( double s ) { strength = s; };
+        inline void setMaxStrength( double s ) { max_strength = s; };
         inline void setDiameter( double d ) { diameter = d; };
+        inline void setHeight( double h ) { height = h; };
+        inline double getStrength() const { return strength; };
+        inline double getDiameter() const { return diameter; };
+        inline double getHeight() const { return height; };
 
-protected:
-        static FGAIThermal *_self;
-       
+        virtual const char* getTypeString(void) const { return "thermal"; }
 private:
 
-        double dt; 
        void Run(double dt);
-        SGPropertyNode* wind_from_down;
+        double max_strength;
         double strength;
         double diameter;
-        double scaler;
+        double height;
+        double factor;
 };