Changeset 1800 for code/branches/network/src/network/packet/Gamestate.h
- Timestamp:
- Sep 20, 2008, 12:51:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/packet/Gamestate.h
r1775 r1800 29 29 #include "Packet.h" 30 30 #include "network/Synchronisable.h" 31 #include <map> 31 32 #ifndef NDEBUG 32 33 #include "util/CRC32.h" … … 62 63 Gamestate(); 63 64 Gamestate(unsigned char *data, int clientID); 65 Gamestate(unsigned char *data); 64 66 65 67 ~Gamestate(); … … 72 74 int getBaseID(); 73 75 Gamestate *diff(Gamestate *base); 76 Gamestate* doSelection(unsigned int clientID); 74 77 Gamestate *undiff(Gamestate *base); 75 78 bool compressData(); … … 77 80 78 81 // Packet functions 82 private: 79 83 virtual unsigned int getSize() const; 80 84 virtual bool process(); … … 84 88 unsigned int calcGamestateSize(unsigned int id, int mode=0x0); 85 89 void removeObject(orxonox::ObjectListIterator<Synchronisable> &it); 86 87 private: 90 std::map<Synchronisable *, unsigned char *> dataMap_; 88 91 }; 89 92
Note: See TracChangeset
for help on using the changeset viewer.