]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Hitch.hpp
replay system: allow to resume simulation at any point of replay-time.
[flightgear.git] / src / FDM / YASim / Hitch.hpp
old mode 100755 (executable)
new mode 100644 (file)
index 0536805..45e9e7b
@@ -1,6 +1,10 @@
 #ifndef _HITCH_HPP
 #define _HITCH_HPP
-class SGPropertyNode;
+
+#include <string>
+
+#include <Main/fg_props.hxx>
+
 namespace yasim {
 
 class Ground;
@@ -46,7 +50,7 @@ public:
 
     void integrate (float dt);
 
-    const char *getConnectedPropertyNode() const;
+    std::string getConnectedPropertyNode() const;
     void setConnectedPropertyNode(const char *nodename);
 
 private:
@@ -76,7 +80,7 @@ private:
     State* _state;
     float _dist;
     float _timeLagCorrectedDist;
-    SGPropertyNode *_towEndNode;
+    SGPropertyNode_ptr _towEndNode;
     const char *_towEndPropertyName;
     bool _towEndIsConnectedToProperty;
     bool _nodeIsMultiplayer;
@@ -102,10 +106,11 @@ private:
     float _mp_force[3];
     bool _mp_is_slave;
     bool _mp_open_last_state;
-    
+
     bool _displayed_len_lower_dist_message;
     bool _last_wish;
 
+    SGPropertyNode_ptr _node;
 };
 
 }; // namespace yasim