Changeset 7768
- Timestamp:
- Dec 15, 2010, 6:53:02 PM (14 years ago)
- Location:
- code/branches/presentation/src/libraries/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/libraries/network/CMakeLists.txt
r7739 r7768 80 80 LANDiscovery.h 81 81 WANDiscovery.h 82 MasterServerComm.h 82 83 PCH_FILE 83 84 NetworkPrecompiledHeaders.h -
code/branches/presentation/src/libraries/network/MasterServerComm.cc
r7765 r7768 28 28 29 29 #include "MasterServerComm.h" 30 #include "util/ScopedSingletonManager.h" 31 #include "core/CoreIncludes.h" 30 32 31 33 namespace orxonox 32 34 { 33 35 ManageScopedSingleton(MasterServerComm, ScopeID::Root, true); 34 36 35 37 MasterServerComm::MasterServerComm() 36 38 { /* nothing anymore, everything's been outsourced to 37 39 * the initialize method to facilitate debugging 38 40 */ 41 /* register object in orxonox */ 42 RegisterObject(MasterServerComm); 39 43 } 40 44 -
code/branches/presentation/src/libraries/network/MasterServerComm.h
r7765 r7768 35 35 #include <cstring> 36 36 #include <enet/enet.h> 37 #include "util/Singleton.h" 38 #include "core/OrxonoxClass.h" 39 #include "core/CoreIncludes.h" 40 #include "NetworkPrereqs.h" 37 41 38 42 // tolua_begin … … 40 44 { 41 45 class _NetworkExport MasterServerComm 46 // tolua_end 42 47 : public Singleton<MasterServerComm>, public OrxonoxClass 43 48 { // tolua_export … … 92 97 int pollForReply( int (*callback)( char*, ENetEvent* ), int delayms ); 93 98 94 /** \return an instance of WANDiscovery99 /** \return an instance of MasterServerComm 95 100 * 96 * Create and return an instance of WANDiscovery.101 * Create and return an instance of MasterServerComm. 97 102 */ 98 103 static MasterServerComm& getInstance() { return Singleton<MasterServerComm>::getInstance(); } // tolua_export … … 112 117 113 118 /** Singleton pointer */ 114 static MasterServerComm *singletonPtr_s;119 static MasterServerComm *singletonPtr_s; 115 120 }; // tolua_export 116 121
Note: See TracChangeset
for help on using the changeset viewer.