Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2006, 12:11:43 AM (18 years ago)
Author:
patrick
Message:

network: added some comments and found some small bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/synchronizeable.h

    r7508 r7559  
    5858    void setIsServer( bool isServer );
    5959    bool isServer();
    60    
     60
    6161    virtual void varChangeHandler( std::list<int> & id );
    62    
     62
    6363    int getStateDiff( int userId, byte* data, int maxLength, int stateId, int fromStateId, int priorityTH );
    6464    bool setStateDiff( int userId, byte* data, int length, int stateId, int fromStateId );
    65    
     65
    6666    void registerVar( SynchronizeableVar * var );
    6767    int registerVarId( SynchronizeableVar * var );
    68    
     68
    6969    inline void setUniqueID( int id ){ uniqueID = id; }
    7070    inline int  getUniqueID() const { return uniqueID; }
     
    7474    inline void setOwner(int owner){ this->owner = owner; }
    7575
    76     /** @returns true if this Synchronizeable has to be synchronized over network */
     76    /** @returns true if this Synchronizeable wants to be synchronized over network */
    7777    inline bool beSynchronized() { return this->bSynchronize; }
    7878    /** @param bSynchronize sets the Synchronizeable to be sunchronized or not */
     
    9292    int               hostID;         //!< my own host id
    9393    bool              bSynchronize;   //!< do we need beeing synchronized?
    94    
     94
    9595    SyncVarList       syncVarList;    //!< list containing variables to synchronize
    96    
    97     UserStateHistory  sentStates;     //!< store already sent states to create diffs from
    98     UserStateHistory  recvStates;     //!< store recieved states to apply diffs
     96
     97    UserStateHistory  sentStates;     //!< store already sent states to create diffs from, offset corresponds to the user id
     98    UserStateHistory  recvStates;     //!< store recieved states to apply diffs, offset corresponds to the user id
    9999
    100100};
Note: See TracChangeset for help on using the changeset viewer.