Changeset 6394 for code/branches/presentation2/src/libraries/network/packet
- Timestamp:
- Dec 22, 2009, 2:07:44 PM (15 years ago)
- Location:
- code/branches/presentation2/src/libraries/network/packet
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/network/packet/ClassID.cc
r5929 r6394 48 48 ClassID::ClassID( ) : Packet(){ 49 49 Identifier *id; 50 std::string classname;51 50 unsigned int nrOfClasses=0; 52 51 unsigned int packetSize=2*sizeof(uint32_t); //space for the packetID and for the nrofclasses … … 61 60 if(id == NULL || !id->hasFactory()) 62 61 continue; 63 c lassname = id->getName();62 const std::string& classname = id->getName(); 64 63 network_id = id->getNetworkID(); 65 64 // now push the network id and the classname to the stack -
code/branches/presentation2/src/libraries/network/packet/DeleteObjects.cc
r6387 r6394 72 72 unsigned int temp = Synchronisable::popDeletedObject(); 73 73 *reinterpret_cast<uint32_t*>(tdata) = temp; 74 COUT(4) << temp << " ";74 COUT(4) << temp << ' '; 75 75 tdata += sizeof(uint32_t); 76 76 } -
code/branches/presentation2/src/libraries/network/packet/FunctionIDs.cc
r6388 r6394 47 47 48 48 FunctionIDs::FunctionIDs( ) : Packet(){ 49 std::string functionname;50 49 unsigned int nrOfFunctions=0; 51 50 unsigned int packetSize=2*sizeof(uint32_t); //space for the packetID and for the nroffunctions … … 57 56 ObjectList<NetworkFunctionBase>::iterator it; 58 57 for(it = ObjectList<NetworkFunctionBase>::begin(); it; ++it){ 59 functionname = it->getName();58 const std::string& functionname = it->getName(); 60 59 networkID = it->getNetworkID(); 61 60 // now push the network id and the classname to the stack -
code/branches/presentation2/src/libraries/network/packet/Gamestate.cc
r6388 r6394 529 529 // COUT(0) << "myvector contains:"; 530 530 // for ( itt=dataVector_.begin() ; itt!=dataVector_.end(); itt++ ) 531 // COUT(0) << " "<< (*itt).objID;531 // COUT(0) << ' ' << (*itt).objID; 532 532 // COUT(0) << endl; 533 533 for(it=dataVector_.begin(); it!=dataVector_.end();){
Note: See TracChangeset
for help on using the changeset viewer.