- Timestamp:
- Oct 19, 2008, 9:50:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/network/ClientInformation.cc
r1952 r1953 45 45 namespace network 46 46 { 47 47 48 48 ClientInformation *ClientInformation::head_=0; 49 49 50 50 ClientInformation::ClientInformation() { 51 51 if(!head_) … … 129 129 return true; 130 130 } 131 131 132 132 bool ClientInformation::setPartialGamestateID(int id){ 133 133 if(!this) … … 150 150 return NULL; 151 151 } 152 152 153 153 int ClientInformation::getFailures(){ 154 154 return failures_; … … 160 160 failures_=0; 161 161 } 162 162 163 163 enet_uint32 ClientInformation::getRTT(){ 164 164 return peer_->roundTripTime; 165 165 } 166 166 167 167 enet_uint32 ClientInformation::getPacketLoss(){ 168 168 return peer_->packetLoss; … … 175 175 return -1; 176 176 } 177 177 178 178 int ClientInformation::getPartialGamestateID() { 179 179 if(this) … … 197 197 198 198 bool ClientInformation::removeClient(int clientID) { 199 if( clientID==CLIENTID_UNKNOWN)199 if((unsigned int)clientID==CLIENTID_UNKNOWN) 200 200 return false; 201 201 ClientInformation *temp = head_;
Note: See TracChangeset
for help on using the changeset viewer.