- Timestamp:
- Dec 15, 2010, 3:27:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/libraries/network/MasterServerComm.h
r7763 r7765 36 36 #include <enet/enet.h> 37 37 38 // tolua_begin 38 39 namespace orxonox 39 40 { 40 class MasterServerComm 41 { 41 class _NetworkExport MasterServerComm 42 : public Singleton<MasterServerComm>, public OrxonoxClass 43 { // tolua_export 44 friend class Singleton<MasterServerComm>; 42 45 public: 43 46 /** constructor */ … … 89 92 int pollForReply( int (*callback)( char*, ENetEvent* ), int delayms ); 90 93 94 /** \return an instance of WANDiscovery 95 * 96 * Create and return an instance of WANDiscovery. 97 */ 98 static MasterServerComm& getInstance() { return Singleton<MasterServerComm>::getInstance(); } // tolua_export 99 91 100 private: 92 101 /** client handle */ … … 101 110 /** peer data holder */ 102 111 ENetPeer *peer; 103 };104 112 105 } 113 /** Singleton pointer */ 114 static MasterServerComm* singletonPtr_s; 115 }; // tolua_export 116 117 } // tolua_export 106 118 107 119 #endif /* MASTERSERVERCOMM_H */
Note: See TracChangeset
for help on using the changeset viewer.