// 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$
/** Destructor. */
~FGMultiplay ();
- /** Enables the FGMultiplay object
- */
+ /** Enables the FGMultiplay object. */
bool open();
/** Tells the multiplayer_mgr to send/receive data.
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;
};