Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Merged revisions 2377-2382 to bugger from presentation.

File:
1 edited

Legend:

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

    r2531 r2532  
    3737#include <algorithm>
    3838#include "util/Integers.h"
     39#include "core/OrxonoxClass.h"
    3940
    4041namespace orxonox {
     
    5253      uint32_t objDiffGS;//difference between current and latest GameState
    5354      uint32_t objSize;
    54       unsigned int objValuePerm;
    55       unsigned int objValueSched;
     55      int objValuePerm;
     56      int objValueSched;
    5657      objInfo(uint32_t ID, uint32_t creatorID, int32_t curGsID, int32_t diffGsID, uint32_t size, unsigned int prioperm, unsigned int priosched);
    5758      objInfo();
     
    7879*
    7980*/
    80 class TrafficControl{
     81class TrafficControl : public OrxonoxClass{
    8182  private:
    8283
     
    139140    */
    140141    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
    141143
    142144  protected:
     
    152154    *Elements of struct i are therefore: *list[i].objID
    153155    */
     156    static TrafficControl *getInstance();
    154157    void processObjectList(unsigned int clientID, unsigned int gamestateID, std::list<obj>* list); //gets a pointer to the list (containing objectIDs) and sorts it
    155158    //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); }
    157161    //done
    158162    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.