29 #ifndef _TrafficControl_H__ 30 #define _TrafficControl_H__ 54 objInfo(uint32_t ID, uint32_t creatorID, int32_t curGsID, int32_t diffGsID, uint32_t size,
unsigned int prioperm,
unsigned int priosched);
69 obj( uint32_t ID, uint32_t creatorID, uint32_t size, uint32_t offset );
100 void insertinClientListPerm(
unsigned int clientID,
obj objinf);
102 void cut(std::list<obj>& list,
unsigned int targetsize);
103 void updateClientListTemp(std::list<obj>& list);
107 void evaluateList(
unsigned int clientID, std::list<obj>& list);
108 void ack(
unsigned int clientID,
unsigned int gamestateID);
112 virtual void clientDisconnected(
unsigned int clientID)
override;
127 void setConfigValues();
129 void processObjectList(
unsigned int clientID,
unsigned int gamestateID, std::list<obj>& list);
130 static void processAck(
unsigned int clientID,
unsigned int gamestateID)
131 {
return instance_->
ack(clientID, gamestateID); }
132 void deleteObject(
unsigned int objectID);
134 bool prioritySort(uint32_t clientID,
obj i,
obj j);
135 bool dataSort(
obj i,
obj j);
136 void printList(std::list<obj>& list,
unsigned int clientID);
137 void fixCreatorDependencies(std::list<obj>::iterator it, std::list<obj>& list,
unsigned int clientID);
objInfo()
Definition: TrafficControl.cc:48
uint32_t objID
Definition: TrafficControl.h:47
Shared library macros, enums, constants and forward declarations for the network library ...
int objValueSched
Definition: TrafficControl.h:53
uint32_t objCreatorID
Definition: TrafficControl.h:48
uint32_t objCurGS
Definition: TrafficControl.h:49
int objValuePerm
Definition: TrafficControl.h:52
uint32_t objID
Definition: TrafficControl.h:64
std::map< unsigned int, std::map< unsigned int, objInfo > > clientListPerm_
permanent client list: contains client ids, object ids and objectInfos (in this order) ...
Definition: TrafficControl.h:84
a list of objects of this type will be given by the Server's Gamestate Manager
Definition: TrafficControl.h:61
unsigned int targetSize
Definition: TrafficControl.h:97
static TrafficControl * instance_
Initializing protected members.
Definition: TrafficControl.h:116
unsigned int currentGamestateID
updateReferenceList currentGamestateID and currentClientID will be defined as soon as TrafficControl ...
Definition: TrafficControl.h:95
An abstract base class.
Definition: ClientConnectionListener.h:40
unsigned int currentClientID
Definition: TrafficControl.h:96
Definition: TrafficControl.h:78
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
uint32_t objSize
Definition: TrafficControl.h:51
static void processAck(unsigned int clientID, unsigned int gamestateID)
Definition: TrafficControl.h:130
bool bActive_
Definition: TrafficControl.h:98
uint32_t objCreatorID
Definition: TrafficControl.h:65
void ack(unsigned int clientID, unsigned int gamestateID)
Definition: TrafficControl.cc:138
uint32_t objDiffGS
Definition: TrafficControl.h:50
virtual void clientConnected(unsigned int clientID) override
Definition: TrafficControl.h:111
std::map< unsigned int, std::map< unsigned int, std::list< obj > > > clientListTemp_
temporary client list: contains client ids, gamestate ids and object ids (in this order) ...
Definition: TrafficControl.h:90
uint32_t objSize
Definition: TrafficControl.h:66
uint32_t objDataOffset
Definition: TrafficControl.h:67
a list of objects of this type will be given by the Server's Gamestate Manager
Definition: TrafficControl.h:44