Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2010, 7:12:32 PM (13 years ago)
Author:
smerkli
Message:

fixes 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/libraries/network/MasterServerComm.h

    r7768 r7769  
    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"
    4137
    42 // tolua_begin
     38
    4339namespace orxonox
    4440{
    45   class _NetworkExport MasterServerComm
    46   // tolua_end
    47     : public Singleton<MasterServerComm>, public OrxonoxClass
    48   { // tolua_export
    49     friend class Singleton<MasterServerComm>;
     41  class MasterServerComm
     42  {
    5043    public:
    5144      /** constructor */
     
    9790      int pollForReply( int (*callback)( char*, ENetEvent* ), int delayms );
    9891
    99       /** \return an instance of MasterServerComm
    100        *
    101        * Create and return an instance of  MasterServerComm.
    102        */
    103       static MasterServerComm& getInstance() { return Singleton<MasterServerComm>::getInstance(); } // tolua_export
    104 
    10592    private:
    10693      /** client handle */
     
    115102      /** peer data holder */
    116103      ENetPeer *peer;
     104  };
    117105
    118       /** Singleton pointer */
    119       static MasterServerComm *singletonPtr_s;
    120   }; // tolua_export
    121 
    122 } // tolua_export
     106}
    123107
    124108#endif /* MASTERSERVERCOMM_H */
Note: See TracChangeset for help on using the changeset viewer.