X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIBase.hxx;h=1bed52ab1d747c9220c82aad55fdb1c000d50ed5;hb=479d4d7484f6aabd4f4e5bb5ece9c6499272ed51;hp=cbd6681f5b9880096a961185eae4dff7c8db47a9;hpb=da6568ad50774e241d8157006a0b49baee2d8537;p=flightgear.git diff --git a/src/AIModel/AIBase.hxx b/src/AIModel/AIBase.hxx index cbd6681f5..1bed52ab1 100644 --- a/src/AIModel/AIBase.hxx +++ b/src/AIModel/AIBase.hxx @@ -15,7 +15,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_AIBASE_HXX #define _FG_AIBASE_HXX @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -56,7 +57,7 @@ public: virtual void bind(); virtual void unbind(); - void setManager(FGAIManager* mgr); + void setManager(FGAIManager* mgr, SGPropertyNode* p); void setPath( const char* model ); void setSpeed( double speed_KTAS ); void setAltitude( double altitude_ft ); @@ -75,8 +76,7 @@ public: void setDie( bool die ); bool getDie(); - Point3D getCartPosAt(const Point3D& off) const; - Point3D getGeocPosAt(const Point3D& off) const; + SGVec3d getCartPosAt(const SGVec3d& off) const; protected: @@ -182,8 +182,9 @@ public: static bool _isNight(); }; -inline void FGAIBase::setManager(FGAIManager* mgr) { +inline void FGAIBase::setManager(FGAIManager* mgr, SGPropertyNode* p) { manager = mgr; + props = p; } inline void FGAIBase::setPath(const char* model ) {