Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9869 in orxonox.OLD for trunk/src/lib/network/proxy


Ignore:
Timestamp:
Oct 3, 2006, 12:19:30 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

Location:
trunk/src/lib/network/proxy
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/network/proxy/network_settings.cc

    r9656 r9869  
    2121#include "shared_network_data.h"
    2222
     23#include "loading/load_param.h"
    2324#include "loading/resource_manager.h"
    24 #include "loading/load_param.h"
    25 
    2625#include "debug.h"
    2726
    2827
     28ObjectListDefinition(NetworkSettings);
    2929
    3030NetworkSettings* NetworkSettings::singletonRef = NULL;
     
    3636{
    3737  /* set the class id for the base object */
    38   this->setClassID(CL_NETWORK_SETTINGS, "NetworkSettings");
     38  this->registerObject(this, NetworkSettings::_objectList);
    3939
    4040  // suggest a good standard max players value
     
    6464void NetworkSettings::loadData()
    6565{
    66   std::string fileName = ResourceManager::getInstance()->getDataDir();
     66  std::string fileName = Resources::ResourceManager::getInstance()->mainGlobalPath().name();
    6767  fileName += "configs/network_settings.conf";
    6868
  • trunk/src/lib/network/proxy/network_settings.h

    r9494 r9869  
    2424class NetworkSettings : public BaseObject
    2525{
    26 
     26  ObjectListDeclaration(NetworkSettings);
    2727  public:
    2828    inline static NetworkSettings* getInstance() { if (!NetworkSettings::singletonRef) NetworkSettings::singletonRef = new NetworkSettings();
  • trunk/src/lib/network/proxy/proxy_control.cc

    r9656 r9869  
    1515#include "proxy_control.h"
    1616
    17 #include "class_list.h"
    1817#include "shell_command.h"
    1918
     
    2827#include "converter.h"
    2928
    30 #include "preferences.h"
     29#include "parser/preferences/preferences.h"
    3130
    3231#include "debug.h"
     
    4140
    4241SHELL_COMMAND(forceReconnect, ProxyControl, forceReconnectionShell);
     42ObjectListDefinition(ProxyControl);
    4343
    4444/**
     
    4747ProxyControl::ProxyControl()
    4848{
    49   this->setClassID( CL_PROXY_CONTROL, "ProxyControl" );
     49  this->registerObject(this, ProxyControl::_objectList);
    5050
    5151  this->setSynchronized(false);
  • trunk/src/lib/network/proxy/proxy_control.h

    r9656 r9869  
    3030class ProxyControl : public Synchronizeable
    3131{
    32 
     32  ObjectListDeclaration(ProxyControl);
    3333  public:
    3434    inline static ProxyControl* getInstance() { if (!ProxyControl::singletonRef) ProxyControl::singletonRef = new ProxyControl();
Note: See TracChangeset for help on using the changeset viewer.