]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBase.hxx
backport from JSBSim/cvs: apply prop sense only once (OK'ed by JSB)
[flightgear.git] / src / AIModel / AIBase.hxx
index 01102b4e6a60318f6f3c015e2f5716b24835bae9..d49336438bc664322725f08efd0d0f4a9d426d1c 100644 (file)
@@ -61,6 +61,7 @@ public:
     void setManager(FGAIManager* mgr, SGPropertyNode* p);
     void setPath( const char* model );
     void setSMPath( const string& p );
+    void setCallSign(const string& );
     void setSpeed( double speed_KTAS );
     void setAltitude( double altitude_ft );
     void setHeading( double heading );
@@ -193,7 +194,6 @@ public:
     double _getAltitude() const;
     double _getLongitude() const;
     double _getLatitude() const;
-    double _getBearing() const;
     double _getElevationFt() const;
     double _getRdot() const;
     double _getH_offset() const;
@@ -226,11 +226,12 @@ public:
 
     SGPropertyNode* _getProps() const;
 
-    const char* _getPath();
-    const char* _getCallsign();
-    const char* _getTriggerNode();
-    const char* _getName();
-    const char* _getSubmodel();
+    const char* _getPath() const;
+    const char* _getSMPath() const;
+    const char* _getCallsign() const;
+    const char* _getTriggerNode() const;
+    const char* _getName() const;
+    const char* _getSubmodel() const;
 
 
     // These are used in the Mach number calculations
@@ -245,6 +246,8 @@ public:
     static const double lbs_to_slugs;
 
     inline double _getRange() { return range; };
+    inline double _getBearing() { return bearing; };
+
     osg::Node* load3DModel(const string& fg_root,
                             const string &path,
                             SGPropertyNode *prop_root,
@@ -304,6 +307,11 @@ inline void FGAIBase::setLatitude ( double latitude ) {
     pos.setLatitudeDeg( latitude );
 }
 
+inline void FGAIBase::setCallSign(const string& s) {
+    _callsign = s;
+}
+
+
 inline void FGAIBase::setDie( bool die ) { delete_me = die; }
 
 inline bool FGAIBase::getDie() { return delete_me; }