Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 2, 2008, 12:54:17 PM (16 years ago)
Author:
rgrieder
Message:

Test: replacing namespace network with namespace orxonox. network::packet —> orxonox::packet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/network/packet/Gamestate.cc

    r2111 r2112  
    3838
    3939
    40 namespace network {
     40namespace orxonox {
    4141
    4242namespace packet {
     
    9393  uint8_t *mem=data_;
    9494  mem+=sizeof(GamestateHeader);
    95   orxonox::ObjectList<Synchronisable>::iterator it;
    96   for(it = orxonox::ObjectList<Synchronisable>::begin(); it; ++it){
     95  ObjectList<Synchronisable>::iterator it;
     96  for(it = ObjectList<Synchronisable>::begin(); it; ++it){
    9797    tempsize=it->getSize(id, mode);
    9898
     
    100100      // start allocate additional memory
    101101      COUT(3) << "G.St.Man: need additional memory" << std::endl;
    102       orxonox::ObjectList<Synchronisable>::iterator temp = it;
     102      ObjectList<Synchronisable>::iterator temp = it;
    103103      int addsize=tempsize;
    104104      while(++temp)
     
    147147  uint8_t *mem=data_+sizeof(GamestateHeader);
    148148    // get the start of the Synchronisable list
    149   //orxonox::ObjectList<Synchronisable>::iterator it=orxonox::ObjectList<Synchronisable>::begin();
     149  //ObjectList<Synchronisable>::iterator it=ObjectList<Synchronisable>::begin();
    150150  Synchronisable *s;
    151151
     
    244244  //copy and modify header
    245245#ifndef NDEBUG
    246   HEADER->crc32 = orxonox::calcCRC(data_+sizeof(GamestateHeader), HEADER->datasize);
     246  HEADER->crc32 = calcCRC(data_+sizeof(GamestateHeader), HEADER->datasize);
    247247#endif
    248248  *GAMESTATE_HEADER(ndata) = *HEADER;
     
    281281  }
    282282#ifndef NDEBUG
    283   assert(HEADER->crc32==orxonox::calcCRC(ndata+sizeof(GamestateHeader), HEADER->datasize));
     283  assert(HEADER->crc32==calcCRC(ndata+sizeof(GamestateHeader), HEADER->datasize));
    284284#endif
    285285
     
    569569  int size=0;
    570570    // get the start of the Synchronisable list
    571   orxonox::ObjectList<Synchronisable>::iterator it;
     571  ObjectList<Synchronisable>::iterator it;
    572572    // get total size of gamestate
    573   for(it = orxonox::ObjectList<Synchronisable>::begin(); it; ++it)
     573  for(it = ObjectList<Synchronisable>::begin(); it; ++it)
    574574    size+=it->getSize(id, mode); // size of the actual data of the synchronisable
    575575//  size+=sizeof(GamestateHeader);
     
    582582 * @return iterator pointing to the next object in the list
    583583 */
    584   void Gamestate::removeObject(orxonox::ObjectList<Synchronisable>::iterator &it) {
    585     orxonox::ObjectList<Synchronisable>::iterator temp=it;
     584  void Gamestate::removeObject(ObjectList<Synchronisable>::iterator &it) {
     585    ObjectList<Synchronisable>::iterator temp=it;
    586586    ++it;
    587587    delete  *temp;
Note: See TracChangeset for help on using the changeset viewer.