Changeset 2532 for code/branches/bugger/src/network/TrafficControl.h
- Timestamp:
- Dec 23, 2008, 11:15:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/bugger/src/network/TrafficControl.h
r2531 r2532 37 37 #include <algorithm> 38 38 #include "util/Integers.h" 39 #include "core/OrxonoxClass.h" 39 40 40 41 namespace orxonox { … … 52 53 uint32_t objDiffGS;//difference between current and latest GameState 53 54 uint32_t objSize; 54 unsignedint objValuePerm;55 unsignedint objValueSched;55 int objValuePerm; 56 int objValueSched; 56 57 objInfo(uint32_t ID, uint32_t creatorID, int32_t curGsID, int32_t diffGsID, uint32_t size, unsigned int prioperm, unsigned int priosched); 57 58 objInfo(); … … 78 79 * 79 80 */ 80 class TrafficControl {81 class TrafficControl : public OrxonoxClass{ 81 82 private: 82 83 … … 139 140 */ 140 141 void evaluateList(unsigned int clientID, std::list<obj> *list);//done 142 void ack(unsigned int clientID, unsigned int gamestateID); // this function gets called when the server receives an ack from the client 141 143 142 144 protected: … … 152 154 *Elements of struct i are therefore: *list[i].objID 153 155 */ 156 static TrafficControl *getInstance(); 154 157 void processObjectList(unsigned int clientID, unsigned int gamestateID, std::list<obj>* list); //gets a pointer to the list (containing objectIDs) and sorts it 155 158 //done 156 void processAck(unsigned int clientID, unsigned int gamestateID); // this function gets called when the server receives an ack from the client 159 static void processAck(unsigned int clientID, unsigned int gamestateID) 160 { return instance_->ack(clientID, gamestateID); } 157 161 //done 158 162 void deleteObject(unsigned int objectID); // this function gets called when an object has been deleted (in order to clean up lists and maps)
Note: See TracChangeset
for help on using the changeset viewer.