Changeset 2413 for code/branches/presentation/src/network/TrafficControl.h
- Timestamp:
- Dec 11, 2008, 11:09:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/network/TrafficControl.h
r2387 r2413 38 38 #include "util/Integers.h" 39 39 #include "core/OrxonoxClass.h" 40 #include "network/ClientConnectionListener.h" 40 41 41 42 namespace orxonox { … … 79 80 * 80 81 */ 81 class TrafficControl : public OrxonoxClass{82 class TrafficControl : public ClientConnectionListener { 82 83 private: 83 84 … … 141 142 void evaluateList(unsigned int clientID, std::list<obj> *list);//done 142 143 void ack(unsigned int clientID, unsigned int gamestateID); // this function gets called when the server receives an ack from the client 143 void priRemoveClient(int clientID); 144 145 //ClientConnectionListener functions 146 virtual void clientConnected(unsigned int clientID){}; 147 virtual void clientDisconnected(unsigned int clientID); 148 144 149 145 150 protected: … … 155 160 *Elements of struct i are therefore: *list[i].objID 156 161 */ 162 void setConfigValues(); 157 163 static TrafficControl *getInstance(); 158 164 void processObjectList(unsigned int clientID, unsigned int gamestateID, std::list<obj>* list); //gets a pointer to the list (containing objectIDs) and sorts it … … 166 172 void printList(std::list<obj> *list, unsigned int clientID); 167 173 void fixCreatorDependencies(std::list<obj>::iterator it, std::list<obj> *list, unsigned int clientID); 168 void pubRemoveClient(int clientID);169 174 }; 170 175
Note: See TracChangeset
for help on using the changeset viewer.