]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBase.hxx
Bertrand Coconnier:
[flightgear.git] / src / AIModel / AIBase.hxx
index 7f02842360de92ee8a58717d3a4aadcbb3e2d85e..8840136dae3546c7a9143f7069e6578461433ef8 100644 (file)
@@ -25,7 +25,6 @@
 
 #include <simgear/constants.h>
 #include <simgear/math/SGMath.hxx>
-#include <simgear/math/point3d.hxx>
 #include <simgear/scene/model/placement.hxx>
 #include <simgear/misc/sg_path.hxx>
 #include <simgear/structure/SGSharedPtr.hxx>
@@ -37,6 +36,7 @@
 using std::string;
 using std::list;
 
+class SGMaterial;
 class FGAIManager;
 class FGAIFlightPlan;
 
@@ -44,7 +44,7 @@ class FGAIBase : public osg::Referenced {
 
 public:
     enum object_type { otNull = 0, otAircraft, otShip, otCarrier, otBallistic,
-                       otRocket, otStorm, otThermal, otStatic, otWingman,
+                       otRocket, otStorm, otThermal, otStatic, otWingman, otGroundVehicle,
                        otMultiplayer,
                        MAX_OBJECTS };  // Needs to be last!!!
 
@@ -94,6 +94,9 @@ public:
     SGVec3d getCartPosAt(const SGVec3d& off) const;
     SGVec3d getCartPos() const;
 
+    bool getGroundElevationM(const SGGeod& pos, double& elev,
+                             const SGMaterial** material) const;
+
     double _getCartPosX() const;
     double _getCartPosY() const;
     double _getCartPosZ() const;
@@ -192,6 +195,7 @@ protected:
 private:
     int _refID;
     object_type _otype;
+    bool _initialized;
 
 public:
     object_type getType();