Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2008, 11:09:01 PM (15 years ago)
Author:
scheusso
Message:

trafficControl working now, but further tweaking in diff and priorities is needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/network/TrafficControl.h

    r2387 r2413  
    3838#include "util/Integers.h"
    3939#include "core/OrxonoxClass.h"
     40#include "network/ClientConnectionListener.h"
    4041
    4142namespace orxonox {
     
    7980*
    8081*/
    81 class TrafficControl : public OrxonoxClass{
     82class TrafficControl : public ClientConnectionListener {
    8283  private:
    8384
     
    141142    void evaluateList(unsigned int clientID, std::list<obj> *list);//done   
    142143    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
    144149 
    145150  protected:
     
    155160    *Elements of struct i are therefore: *list[i].objID
    156161    */
     162    void setConfigValues();
    157163    static TrafficControl *getInstance();
    158164    void processObjectList(unsigned int clientID, unsigned int gamestateID, std::list<obj>* list); //gets a pointer to the list (containing objectIDs) and sorts it
     
    166172    void printList(std::list<obj> *list, unsigned int clientID);
    167173    void fixCreatorDependencies(std::list<obj>::iterator it, std::list<obj> *list, unsigned int clientID);
    168     void pubRemoveClient(int clientID);
    169174};
    170175
Note: See TracChangeset for help on using the changeset viewer.