]> 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 3e10f87..4c8d50a
@@ -32,19 +32,14 @@ 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);
 
-  void addMotionInfo(const FGExternalMotionData& motionInfo, long stamp);
+  void addMotionInfo(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; }
 
@@ -64,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:
@@ -77,11 +75,11 @@ private:
   typedef std::map<unsigned, SGSharedPtr<SGPropertyNode> > PropertyMap;
   PropertyMap mPropertyMap;
 
-  std::string mCallSign;
-
   double mTimeOffset;
   bool mTimeOffsetSet;
 
+  double lastUpdateTime;
+
   /// Properties which are for now exposed for testing
   bool mAllowExtrapolation;
   double mLagAdjustSystemSpeed;
@@ -89,7 +87,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
 };