Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 9, 2008, 4:31:34 PM (16 years ago)
Author:
scheusso
Message:

merged network branch back into trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/packet/Gamestate.h

    r1747 r1751  
    2929#include "Packet.h"
    3030#include "network/Synchronisable.h"
    31 //#include "util/Bytestream.h"
     31#ifndef NDEBUG
     32#include "util/CRC32.h"
     33#endif
    3234#include "core/CoreIncludes.h"
    3335
     
    4850  bool complete; // wheter it is a complete gamestate or only partial
    4951  bool compressed;
     52#ifndef NDEBUG
     53  uint32_t crc32;
     54#endif
    5055};
    5156
     
    6469    int getID();
    6570    bool isDiffed();
     71    bool isCompressed();
    6672    int getBaseID();
    6773    Gamestate *diff(Gamestate *base);
     
    7480    virtual bool process();
    7581
    76 
     82    bool operator ==(packet::Gamestate gs);
    7783  private:
    78     unsigned int calcGamestateSize(int mode=0x0);
    79     void removeObject(orxonox::ObjectListIterator<Synchronisable> &it);
     84    unsigned int calcGamestateSize(unsigned int id, int mode=0x0);
     85    void removeObject(orxonox::ObjectList<Synchronisable>::iterator &it);
    8086
    8187
Note: See TracChangeset for help on using the changeset viewer.