]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIMultiplayer.hxx
Interim windows build fix
[flightgear.git] / src / AIModel / AIMultiplayer.hxx
index 6b30685aab218708b006ed9ec69e49cdf19d5ff4..c813ef57d520a753c596a602bd6069d7fd0f23f5 100644 (file)
@@ -34,10 +34,9 @@ public:
 
   virtual bool init(bool search_in_AI_path=false);
   virtual void bind();
-  virtual void unbind();
   virtual void update(double dt);
 
-  void addMotionInfo(const FGExternalMotionData& motionInfo, long stamp);
+  void addMotionInfo(FGExternalMotionData& motionInfo, long stamp);
   void setDoubleProperty(const std::string& prop, double val);
 
   long getLastTimestamp(void) const
@@ -59,6 +58,21 @@ public:
   void addPropertyId(unsigned id, const char* name)
   { mPropertyMap[id] = props->getNode(name, true); }
 
+  double getplayerLag(void) const
+  { return playerLag; }
+
+  void setplayerLag(double mplayerLag)
+  {playerLag = mplayerLag; }
+
+  int getcompensateLag(void) const
+  { return compensateLag; }
+
+  void setcompensateLag(int mcompensateLag)
+  {compensateLag = mcompensateLag; }
+
+  SGPropertyNode* getPropertyRoot()
+  { return props; }
+
   virtual const char* getTypeString(void) const { return "multiplayer"; }
 
 private:
@@ -74,6 +88,9 @@ private:
 
   double mTimeOffset;
   bool mTimeOffsetSet;
+  double playerLag;
+  int compensateLag;
+  double lastUpdateTime;
 
   /// Properties which are for now exposed for testing
   bool mAllowExtrapolation;
@@ -81,10 +98,15 @@ private:
 
   long mLastTimestamp;
 
-  // Propertiies for tankers
+  // Properties for tankers
   SGPropertyNode_ptr refuel_node;
   bool isTanker;
   bool contact;          // set if this tanker is within fuelling range
+  
+  // velocities/u,v,wbody-fps 
+  SGPropertyNode_ptr _uBodyNode;
+  SGPropertyNode_ptr _vBodyNode;
+  SGPropertyNode_ptr _wBodyNode;
 };
 
 #endif  // _FG_AIMultiplayer_HXX