Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 20, 2008, 12:51:16 AM (16 years ago)
Author:
scheusso
Message:

client-based object selection (in gamestate transmission) should now work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/packet/Gamestate.h

    r1775 r1800  
    2929#include "Packet.h"
    3030#include "network/Synchronisable.h"
     31#include <map>
    3132#ifndef NDEBUG
    3233#include "util/CRC32.h"
     
    6263    Gamestate();
    6364    Gamestate(unsigned char *data, int clientID);
     65    Gamestate(unsigned char *data);
    6466
    6567    ~Gamestate();
     
    7274    int getBaseID();
    7375    Gamestate *diff(Gamestate *base);
     76    Gamestate* doSelection(unsigned int clientID);
    7477    Gamestate *undiff(Gamestate *base);
    7578    bool compressData();
     
    7780
    7881    // Packet functions
     82  private:
    7983    virtual unsigned int getSize() const;
    8084    virtual bool process();
     
    8488    unsigned int calcGamestateSize(unsigned int id, int mode=0x0);
    8589    void removeObject(orxonox::ObjectListIterator<Synchronisable> &it);
    86 
    87   private:
     90    std::map<Synchronisable *, unsigned char *> dataMap_;
    8891};
    8992
Note: See TracChangeset for help on using the changeset viewer.