]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIMultiplayer.hxx
warnings--
[flightgear.git] / src / AIModel / AIMultiplayer.hxx
index 406b00c6ee2ced5c4d7fe0c30852d5f0a5fcfb42..7fec2d05779408fff27c72c1d348936019a1f55c 100755 (executable)
@@ -31,20 +31,20 @@ class FGAIMultiplayer : public FGAIBase {
 public:
   FGAIMultiplayer();
   virtual ~FGAIMultiplayer();
-  
+
   virtual bool init();
   virtual void bind();
   virtual void unbind();
   virtual void update(double dt);
-  
+
   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; }
 
@@ -71,22 +71,27 @@ private:
   // Automatic sorting of motion data according to its timestamp
   typedef std::map<double,FGExternalMotionData> MotionInfo;
   MotionInfo mMotionInfo;
-  
+
   // Map between the property id's from the multiplayers network packets
   // and the property nodes
   typedef std::map<unsigned, SGSharedPtr<SGPropertyNode> > PropertyMap;
   PropertyMap mPropertyMap;
 
   std::string mCallSign;
-  
+
   double mTimeOffset;
   bool mTimeOffsetSet;
-  
+
   /// Properties which are for now exposed for testing
   bool mAllowExtrapolation;
   double mLagAdjustSystemSpeed;
 
   long mLastTimestamp;
+
+  // Propertiies for tankers
+  SGPropertyNode_ptr refuel_node;
+  bool isTanker;
+  bool contact;          // set if this tanker is within fuelling range
 };
 
 #endif  // _FG_AIMultiplayer_HXX