X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIMultiplayer.hxx;h=6b30685aab218708b006ed9ec69e49cdf19d5ff4;hb=b78bf2e9e66f9e404f76d416db11315302da0f40;hp=3e10f87230a0d640fe1240019f2a80fe5c476e65;hpb=f5955a9cab55e6c4d977f26c5dc0783024a9e71e;p=flightgear.git diff --git a/src/AIModel/AIMultiplayer.hxx b/src/AIModel/AIMultiplayer.hxx old mode 100755 new mode 100644 index 3e10f8723..6b30685aa --- a/src/AIModel/AIMultiplayer.hxx +++ b/src/AIModel/AIMultiplayer.hxx @@ -32,7 +32,7 @@ public: FGAIMultiplayer(); virtual ~FGAIMultiplayer(); - virtual bool init(); + virtual bool init(bool search_in_AI_path=false); virtual void bind(); virtual void unbind(); virtual void update(double dt); @@ -40,11 +40,6 @@ public: void addMotionInfo(const FGExternalMotionData& motionInfo, long stamp); void setDoubleProperty(const std::string& prop, double val); - void setCallSign(const string& callSign) - { mCallSign = callSign; } - const char* getCallSign(void) const - { return mCallSign.c_str(); } - long getLastTimestamp(void) const { return mLastTimestamp; } @@ -77,8 +72,6 @@ private: typedef std::map > PropertyMap; PropertyMap mPropertyMap; - std::string mCallSign; - double mTimeOffset; bool mTimeOffsetSet; @@ -89,7 +82,7 @@ private: long mLastTimestamp; // Propertiies for tankers - SGPropertyNode* refuel_node; + SGPropertyNode_ptr refuel_node; bool isTanker; bool contact; // set if this tanker is within fuelling range };