- Timestamp:
- Aug 9, 2011, 12:37:21 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/network/WANDiscovery.h
r8817 r8832 32 32 #include "packet/ServerInformation.h" 33 33 #include "core/ConfigFileManager.h" 34 #include "util/Singleton.h"35 34 #include "core/OrxonoxClass.h" 36 35 #include "core/ConfigValueIncludes.h" … … 49 48 class _NetworkExport WANDiscovery 50 49 // tolua_end 51 : public Singleton<WANDiscovery>, publicOrxonoxClass50 : public OrxonoxClass 52 51 { // tolua_export 53 friend class Singleton<WANDiscovery>;54 52 public: 55 53 /** constructor */ 56 WANDiscovery(); 54 WANDiscovery(); // tolua_export 57 55 58 56 /** destructor */ … … 83 81 std::string getServerListItemIP( unsigned int index ); // tolua_export 84 82 85 /** \return an instance of WANDiscovery86 *87 * Create and return an instance of WANDiscovery.88 */89 static WANDiscovery& getInstance() { return Singleton<WANDiscovery>::getInstance(); } // tolua_export90 91 83 /* todo: might make this private and use getter/setter methods 92 84 * at some later time. … … 100 92 /** Master server communications object */ 101 93 MasterServerComm msc; 94 95 int rhandler( char *addr, ENetEvent *ev ); 102 96 103 97 private: 104 /** Singleton pointer */105 static WANDiscovery* singletonPtr_s;106 107 98 /** master server address */ 108 99 std::string msaddress;
Note: See TracChangeset
for help on using the changeset viewer.