]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBase.hxx
Bertrand Coconnier:
[flightgear.git] / src / AIModel / AIBase.hxx
index 46d287f732778dd4397f07fb6bf7cf6fccba2057..8840136dae3546c7a9143f7069e6578461433ef8 100644 (file)
@@ -36,6 +36,7 @@
 using std::string;
 using std::list;
 
+class SGMaterial;
 class FGAIManager;
 class FGAIFlightPlan;
 
@@ -43,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!!!
 
@@ -93,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;