]> 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 f802c9937f09f2ebcb74a9fac34e48c5c010cfae..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 );
@@ -225,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
@@ -305,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; }