X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIMultiplayer.hxx;h=4c8d50a001d086f237fc4d2ac8ed8f58076ac48b;hb=38226af24ec01e8f0a20d7fd73ef838a69f6ef25;hp=6b30685aab218708b006ed9ec69e49cdf19d5ff4;hpb=ef152ee4113ca38526f4c9ed283d2d8ac5e47d67;p=flightgear.git diff --git a/src/AIModel/AIMultiplayer.hxx b/src/AIModel/AIMultiplayer.hxx index 6b30685aa..4c8d50a00 100644 --- a/src/AIModel/AIMultiplayer.hxx +++ b/src/AIModel/AIMultiplayer.hxx @@ -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;