Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 26, 2008, 12:52:43 AM (16 years ago)
Author:
scheusso
Message:

a hole lot of changes:

  • changes in structure concerning client/server (they inherit from Host now)
  • some small changes in spaceship
  • delete unused files
  • modified clientinformation (is a singleton now)
  • modified gamestatemanager (adopted clientinformation changes)
  • modified connectionmanager (adopted CI changes, is a singleton now)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/ClientInformation.h

    r1534 r1666  
    6060  public:
    6161    ClientInformation();
    62     ClientInformation(bool head);
    6362    //   ClientInformation(ClientInformation *prev, ClientInformation *next);
    6463    //   ClientInformation(ClientInformation *prev);
     
    6665    ClientInformation *next();
    6766    ClientInformation *prev();
    68     ClientInformation *insertBack(ClientInformation *ins);
     67    static ClientInformation *insertBack(ClientInformation *ins);
    6968   
    7069    // set functions
     
    8180    int getPartialGamestateID();
    8281    ENetPeer *getPeer();
    83     bool getHead();
    84     void setHead(bool h);
    8582   
    8683    int getFailures();
     
    9087    enet_uint32 getPacketLoss();
    9188   
    92     bool removeClient(int clientID);
    93     bool removeClient(ENetPeer *peer);
    94     //## add bool mask-function eventually
    95     ClientInformation *findClient(int clientID, bool look_backwards=false);
    96     //## add bool mask-function eventually
    97     ClientInformation *findClient(ENetAddress *address, bool look_backwards=false);
     89    static bool removeClient(int clientID);
     90    static bool removeClient(ENetPeer *peer);
     91    static ClientInformation *findClient(int clientID, bool look_backwards=false);
     92    static ClientInformation *findClient(ENetAddress *address, bool look_backwards=false);
     93    static ClientInformation *getBegin(){return head_;}
    9894
    9995    bool setSynched(bool s);
     
    10197
    10298
    103     private:
    104       bool setNext(ClientInformation *next);
    105       bool setPrev(ClientInformation *prev);
     99  private:
     100    static ClientInformation *head_;
     101   
     102    bool setNext(ClientInformation *next);
     103    bool setPrev(ClientInformation *prev);
    106104    ClientInformation *insertAfter(ClientInformation *ins);
    107105    ClientInformation *insertBefore(ClientInformation *ins);
     
    116114    int ShipID_;   // this is the unique objectID
    117115    bool synched_;
    118     bool head_;
    119116    unsigned short failures_;
    120117   
Note: See TracChangeset for help on using the changeset viewer.