]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/multiplay.hxx
Fix line endings
[flightgear.git] / src / Network / multiplay.hxx
index 10bea8ae16ebd504fdf2bb8d57c9c21a58f773a0..0dbb42799f9d7e16b276b41117dcc8352afec29c 100644 (file)
@@ -3,6 +3,8 @@
 // Written by Diarmuid Tyson, started February 2003.
 // diarmuid.tyson@airservicesaustralia.com
 //
+// With additions by Vivian Meazza, January 2006
+//
 // Copyright (C) 2003  Airservices Australia
 //
 // This program is free software; you can redistribute it and/or
 
 #define FG_MULTIPLAY_HID "$Id$"
 
+#include <simgear/compiler.h>
+
 #include STL_STRING
-SG_USING_STD(string);
 
-#include "protocol.hxx"
-#include <simgear/compiler.h>
+#include <simgear/props/props.hxx>
+#include <simgear/scene/model/model.hxx>
+
 #include <Main/globals.hxx>
 #include <Main/fg_props.hxx>
 #include <Model/acmodel.hxx>
-#include <Model/model.hxx>
-#include <MultiPlayer/multiplaytxmgr.hxx>
-#include <MultiPlayer/multiplayrxmgr.hxx>
+#include <MultiPlayer/multiplaymgr.hxx>
+
+#include "protocol.hxx"
+
+SG_USING_STD(string);
+
 
 /****************************************************************
 * @version $Id$
@@ -61,8 +68,7 @@ public:
     /** Destructor. */
     ~FGMultiplay ();
 
-    /** Enables the FGMultiplay object
-    */
+    /** Enables the FGMultiplay object. */
     bool open();
 
     /** Tells the multiplayer_mgr to send/receive data.
@@ -74,7 +80,10 @@ public:
     bool close();
 
 private:
-
+  // Map between the property id's from the multiplayers network packets
+  // and the property nodes
+  typedef std::map<unsigned, SGSharedPtr<SGPropertyNode> > PropertyMap;
+  PropertyMap mPropertyMap;
 };