//
// 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
#include <list>
#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>
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 );
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:
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 ) {