/* orxonox - the future of 3D-vertical-scrollers Copyright (C) 2004 orx This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. ### File Specific: main-programmer: Patrick Boenzli */ #define DEBUG_MODULE_NETWORK #include "shared_network_data.h" #include "netdefs.h" using namespace std; SharedNetworkData* SharedNetworkData::singletonRef = NULL; /** * Standard constructor */ SharedNetworkData::SharedNetworkData() { /* set the class id for the base object */ this->setClassID(CL_SHARED_NETWORK_DATA, "SharedNetworkData"); this->hostID = -1; this->defaultSyncStream = NULL; this->newUniqueID = NET_MAX_CONNECTIONS + 2; this->nodeType = NET_CLIENT; } /** * Standard destructor */ SharedNetworkData::~SharedNetworkData() { SharedNetworkData::singletonRef = NULL; }