Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7768 for code


Ignore:
Timestamp:
Dec 15, 2010, 6:53:02 PM (14 years ago)
Author:
smerkli
Message:

fixes

Location:
code/branches/presentation/src/libraries/network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/libraries/network/CMakeLists.txt

    r7739 r7768  
    8080    LANDiscovery.h
    8181    WANDiscovery.h
     82    MasterServerComm.h
    8283  PCH_FILE
    8384    NetworkPrecompiledHeaders.h
  • code/branches/presentation/src/libraries/network/MasterServerComm.cc

    r7765 r7768  
    2828
    2929#include "MasterServerComm.h"
     30#include "util/ScopedSingletonManager.h"
     31#include "core/CoreIncludes.h"
    3032
    3133namespace orxonox
    3234{
    3335  ManageScopedSingleton(MasterServerComm, ScopeID::Root, true);
    34  
     36
    3537  MasterServerComm::MasterServerComm()
    3638  { /* nothing anymore, everything's been outsourced to
    3739     * the initialize method to facilitate debugging
    3840     */
     41    /* register object in orxonox */
     42    RegisterObject(MasterServerComm);
    3943  }
    4044
  • code/branches/presentation/src/libraries/network/MasterServerComm.h

    r7765 r7768  
    3535#include <cstring>
    3636#include <enet/enet.h>
     37#include "util/Singleton.h"
     38#include "core/OrxonoxClass.h"
     39#include "core/CoreIncludes.h"
     40#include "NetworkPrereqs.h"
    3741
    3842// tolua_begin
     
    4044{
    4145  class _NetworkExport MasterServerComm
     46  // tolua_end
    4247    : public Singleton<MasterServerComm>, public OrxonoxClass
    4348  { // tolua_export
     
    9297      int pollForReply( int (*callback)( char*, ENetEvent* ), int delayms );
    9398
    94       /** \return an instance of WANDiscovery
     99      /** \return an instance of MasterServerComm
    95100       *
    96        * Create and return an instance of WANDiscovery.
     101       * Create and return an instance of  MasterServerComm.
    97102       */
    98103      static MasterServerComm& getInstance() { return Singleton<MasterServerComm>::getInstance(); } // tolua_export
     
    112117
    113118      /** Singleton pointer */
    114       static MasterServerComm* singletonPtr_s;
     119      static MasterServerComm *singletonPtr_s;
    115120  }; // tolua_export
    116121
Note: See TracChangeset for help on using the changeset viewer.