- Timestamp:
- Oct 21, 2008, 5:53:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/network/GamestateClient.cc
r1944 r1990 43 43 struct _NetworkExport GameStateItem{ 44 44 packet::Gamestate *state; 45 int id;45 unsigned int id; 46 46 }; 47 47 … … 56 56 } 57 57 58 bool GamestateClient::ack( int gamestateID,int clientID){58 bool GamestateClient::ack(unsigned int gamestateID, unsigned int clientID){ 59 59 return true; 60 60 } 61 61 62 bool GamestateClient::add(packet::Gamestate *gs, int clientID){62 bool GamestateClient::add(packet::Gamestate *gs, unsigned int clientID){ 63 63 if(tempGamestate_!=NULL){ 64 64 //delete the obsolete gamestate … … 110 110 111 111 void GamestateClient::cleanup(){ 112 std::map< int, packet::Gamestate*>::iterator temp, it = gamestateMap_.begin();112 std::map<unsigned int, packet::Gamestate*>::iterator temp, it = gamestateMap_.begin(); 113 113 while(it!=gamestateMap_.end()){ 114 114 if(it->first>=last_diff_) … … 123 123 124 124 void GamestateClient::printGamestateMap(){ 125 std::map< int, packet::Gamestate*>::iterator it;125 std::map<unsigned int, packet::Gamestate*>::iterator it; 126 126 COUT(4) << "gamestates: "; 127 127 for(it=gamestateMap_.begin(); it!=gamestateMap_.end(); it++){
Note: See TracChangeset
for help on using the changeset viewer.