Changeset 1355 for code/branches/merge/src/network/ClientInformation.cc
- Timestamp:
- May 22, 2008, 11:53:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/merge/src/network/ClientInformation.cc
r1318 r1355 51 51 preve=0; 52 52 nexte=0; 53 partialGamestateID_=GAMESTATEID_INITIAL-1; 53 54 this->head_=false; 54 55 synched_=false; … … 59 60 preve=0; 60 61 nexte=0; 62 partialGamestateID_=GAMESTATEID_INITIAL-1; 61 63 this->head_=head; 62 64 synched_=false; … … 159 161 return true; 160 162 } 163 164 bool ClientInformation::setPartialGamestateID(int id){ 165 boost::recursive_mutex::scoped_lock lock(mutex_); 166 if(!this) 167 return false; 168 partialGamestateID_=id; 169 return true; 170 } 161 171 162 172 int ClientInformation::getID() { … … 203 213 if(this) 204 214 return gamestateID_; 215 else 216 return -1; 217 } 218 219 int ClientInformation::getPartialGamestateID() { 220 boost::recursive_mutex::scoped_lock lock(mutex_); 221 if(this) 222 return partialGamestateID_; 205 223 else 206 224 return -1;
Note: See TracChangeset
for help on using the changeset viewer.