Changeset 1751 for code/trunk/src/network/packet/Gamestate.h
- Timestamp:
- Sep 9, 2008, 4:31:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/packet/Gamestate.h
r1747 r1751 29 29 #include "Packet.h" 30 30 #include "network/Synchronisable.h" 31 //#include "util/Bytestream.h" 31 #ifndef NDEBUG 32 #include "util/CRC32.h" 33 #endif 32 34 #include "core/CoreIncludes.h" 33 35 … … 48 50 bool complete; // wheter it is a complete gamestate or only partial 49 51 bool compressed; 52 #ifndef NDEBUG 53 uint32_t crc32; 54 #endif 50 55 }; 51 56 … … 64 69 int getID(); 65 70 bool isDiffed(); 71 bool isCompressed(); 66 72 int getBaseID(); 67 73 Gamestate *diff(Gamestate *base); … … 74 80 virtual bool process(); 75 81 76 82 bool operator ==(packet::Gamestate gs); 77 83 private: 78 unsigned int calcGamestateSize( int mode=0x0);79 void removeObject(orxonox::ObjectList Iterator<Synchronisable>&it);84 unsigned int calcGamestateSize(unsigned int id, int mode=0x0); 85 void removeObject(orxonox::ObjectList<Synchronisable>::iterator &it); 80 86 81 87
Note: See TracChangeset
for help on using the changeset viewer.