- Timestamp:
- Dec 10, 2008, 12:50:05 PM (16 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation
- Property svn:mergeinfo changed
/code/branches/network (added) merged: 2356 /code/branches/network64 (added) merged: 2210-2211,2245-2247,2255,2307,2309-2312,2316,2355
- Property svn:mergeinfo changed
-
code/branches/presentation/src/network/packet/Gamestate.h
r2171 r2371 31 31 #define NETWORK_PACKETGAMESTATE_H 32 32 33 #include " ../NetworkPrereqs.h"33 #include "network/NetworkPrereqs.h" 34 34 35 35 #include "Packet.h" 36 #include "network/Synchronisable.h" 36 #include "network/TrafficControl.h" 37 #include "core/CoreIncludes.h" 37 38 #include <map> 39 #include <list> 38 40 #ifndef NDEBUG 39 41 #include "util/CRC32.h" … … 79 81 Gamestate *undiff(Gamestate *base); 80 82 Gamestate* intelligentUnDiff(Gamestate *base); 81 Gamestate* doSelection(unsigned int clientID );83 Gamestate* doSelection(unsigned int clientID, unsigned int targetSize); 82 84 bool compressData(); 83 85 bool decompressData(); … … 85 87 // Packet functions 86 88 private: 87 virtual u nsigned int getSize() const;89 virtual uint32_t getSize() const; 88 90 virtual bool process(); 89 91 90 92 bool operator ==(packet::Gamestate gs); 91 93 private: 92 u nsigned int calcGamestateSize(unsigned int id, uint8_t mode=0x0);94 uint32_t calcGamestateSize(int32_t id, uint8_t mode=0x0); 93 95 void removeObject(ObjectListIterator<Synchronisable> &it); 94 std::map<unsigned int, Synchronisable*> dataMap_; 96 std::list<obj> dataMap_; 97 static TrafficControl trafficControl_; 95 98 }; 96 99
Note: See TracChangeset
for help on using the changeset viewer.