Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 12, 2008, 12:15:30 PM (16 years ago)
Author:
scheusso
Message:

Lots of changes:
Some fixes/hacks in objects
Changes in Gamestates and bugfixes
Removed some asserts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/Synchronisable.h

    r1834 r1901  
    5757      bidirectional=0x3
    5858    };
    59    
     59  }
     60 
     61  namespace syncmode{
     62    enum mode{
     63      one=0,
     64      always=1
     65    };
    6066  }
    6167 
     
    6672
    6773  struct synchronisableHeader{
    68     unsigned int size;
    69     bool dataAvailable;
    70     unsigned int objectID;
    71     unsigned int classID;
     74    uint32_t size:31;
     75    bool dataAvailable:1;
     76    uint32_t objectID;
     77    uint32_t classID;
    7278  };
    7379
     
    97103    static void setClient(bool b);
    98104   
    99     static Synchronisable *fabricate(unsigned char*& mem, int mode=0x0);
     105    static Synchronisable *fabricate(uint8_t*& mem, int mode=0x0);
    100106    static bool deleteObject(unsigned int objectID);
    101107    static Synchronisable *getSynchronisable(unsigned int objectID);
     
    114120   
    115121  private:
    116     bool getData(unsigned char*& men, unsigned int id, int mode=0x0);
    117     int getSize(unsigned int id, int mode=0x0);
    118     bool updateData(unsigned char*& mem, int mode=0x0);
    119     bool isMyData(unsigned char* mem);
     122    bool getData(uint8_t*& men, unsigned int id, int mode=0x0);
     123    uint32_t getSize(unsigned int id, int mode=0x0);
     124    bool updateData(uint8_t*& mem, int mode=0x0);
     125    bool isMyData(uint8_t* mem);
    120126    bool doSelection(unsigned int id);
    121127    bool isMyTick(unsigned int id);
Note: See TracChangeset for help on using the changeset viewer.