]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIMultiplayer.hxx
Expose vertical speed for MP planes
[flightgear.git] / src / AIModel / AIMultiplayer.hxx
old mode 100755 (executable)
new mode 100644 (file)
index 6b30685..4c8d50a
@@ -37,7 +37,7 @@ public:
   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 +59,9 @@ public:
   void addPropertyId(unsigned id, const char* name)
   { mPropertyMap[id] = props->getNode(name, true); }
 
+  SGPropertyNode* getPropertyRoot()
+  { return props; }
+
   virtual const char* getTypeString(void) const { return "multiplayer"; }
 
 private:
@@ -75,6 +78,8 @@ private:
   double mTimeOffset;
   bool mTimeOffsetSet;
 
+  double lastUpdateTime;
+
   /// Properties which are for now exposed for testing
   bool mAllowExtrapolation;
   double mLagAdjustSystemSpeed;