Changeset 1666 for code/branches/network/src/network/ClientInformation.h
- Timestamp:
- Aug 26, 2008, 12:52:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/ClientInformation.h
r1534 r1666 60 60 public: 61 61 ClientInformation(); 62 ClientInformation(bool head);63 62 // ClientInformation(ClientInformation *prev, ClientInformation *next); 64 63 // ClientInformation(ClientInformation *prev); … … 66 65 ClientInformation *next(); 67 66 ClientInformation *prev(); 68 ClientInformation *insertBack(ClientInformation *ins);67 static ClientInformation *insertBack(ClientInformation *ins); 69 68 70 69 // set functions … … 81 80 int getPartialGamestateID(); 82 81 ENetPeer *getPeer(); 83 bool getHead();84 void setHead(bool h);85 82 86 83 int getFailures(); … … 90 87 enet_uint32 getPacketLoss(); 91 88 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_;} 98 94 99 95 bool setSynched(bool s); … … 101 97 102 98 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); 106 104 ClientInformation *insertAfter(ClientInformation *ins); 107 105 ClientInformation *insertBefore(ClientInformation *ins); … … 116 114 int ShipID_; // this is the unique objectID 117 115 bool synched_; 118 bool head_;119 116 unsigned short failures_; 120 117
Note: See TracChangeset
for help on using the changeset viewer.