Changeset 9869 in orxonox.OLD for trunk/src/lib/network/proxy
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- Location:
- trunk/src/lib/network/proxy
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/proxy/network_settings.cc
r9656 r9869 21 21 #include "shared_network_data.h" 22 22 23 #include "loading/load_param.h" 23 24 #include "loading/resource_manager.h" 24 #include "loading/load_param.h"25 26 25 #include "debug.h" 27 26 28 27 28 ObjectListDefinition(NetworkSettings); 29 29 30 30 NetworkSettings* NetworkSettings::singletonRef = NULL; … … 36 36 { 37 37 /* set the class id for the base object */ 38 this-> setClassID(CL_NETWORK_SETTINGS, "NetworkSettings");38 this->registerObject(this, NetworkSettings::_objectList); 39 39 40 40 // suggest a good standard max players value … … 64 64 void NetworkSettings::loadData() 65 65 { 66 std::string fileName = Resource Manager::getInstance()->getDataDir();66 std::string fileName = Resources::ResourceManager::getInstance()->mainGlobalPath().name(); 67 67 fileName += "configs/network_settings.conf"; 68 68 -
trunk/src/lib/network/proxy/network_settings.h
r9494 r9869 24 24 class NetworkSettings : public BaseObject 25 25 { 26 26 ObjectListDeclaration(NetworkSettings); 27 27 public: 28 28 inline static NetworkSettings* getInstance() { if (!NetworkSettings::singletonRef) NetworkSettings::singletonRef = new NetworkSettings(); -
trunk/src/lib/network/proxy/proxy_control.cc
r9656 r9869 15 15 #include "proxy_control.h" 16 16 17 #include "class_list.h"18 17 #include "shell_command.h" 19 18 … … 28 27 #include "converter.h" 29 28 30 #include "p references.h"29 #include "parser/preferences/preferences.h" 31 30 32 31 #include "debug.h" … … 41 40 42 41 SHELL_COMMAND(forceReconnect, ProxyControl, forceReconnectionShell); 42 ObjectListDefinition(ProxyControl); 43 43 44 44 /** … … 47 47 ProxyControl::ProxyControl() 48 48 { 49 this-> setClassID( CL_PROXY_CONTROL, "ProxyControl");49 this->registerObject(this, ProxyControl::_objectList); 50 50 51 51 this->setSynchronized(false); -
trunk/src/lib/network/proxy/proxy_control.h
r9656 r9869 30 30 class ProxyControl : public Synchronizeable 31 31 { 32 32 ObjectListDeclaration(ProxyControl); 33 33 public: 34 34 inline static ProxyControl* getInstance() { if (!ProxyControl::singletonRef) ProxyControl::singletonRef = new ProxyControl();
Note: See TracChangeset
for help on using the changeset viewer.