Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 24, 2008, 11:00:30 PM (16 years ago)
Author:
scheusso
Message:

first success: client clones the servers universe and displays it with quite good performance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network3/src/network/Client.h

    r1168 r1184  
    6565  class _NetworkExport Client : PacketDecoder, public orxonox::Tickable{
    6666  public:
    67     Client();
    68     Client(std::string address, int port);
    69     Client(const char *address, int port);
    70 
     67   
     68    static Client* createSingleton();
     69    static Client* createSingleton(std::string address, int port);
     70    static Client* createSingleton(const char *address, int port);
     71    static void destroySingleton();
     72    static Client *getSingleton();
     73   
    7174    bool establishConnection();
    7275    bool closeConnection();
     
    8487
    8588  private:
     89    Client();
     90    Client(std::string address, int port);
     91    Client(const char *address, int port);
     92    ~Client();
     93   
     94    static Client* _sClient;
     95   
    8696    ClientConnection client_connection;
    8797    PacketGenerator pck_gen;
Note: See TracChangeset for help on using the changeset viewer.