Changeset 7559 in orxonox.OLD for branches/network/src/lib/network/synchronizeable.h
- Timestamp:
- May 10, 2006, 12:11:43 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable.h
r7508 r7559 58 58 void setIsServer( bool isServer ); 59 59 bool isServer(); 60 60 61 61 virtual void varChangeHandler( std::list<int> & id ); 62 62 63 63 int getStateDiff( int userId, byte* data, int maxLength, int stateId, int fromStateId, int priorityTH ); 64 64 bool setStateDiff( int userId, byte* data, int length, int stateId, int fromStateId ); 65 65 66 66 void registerVar( SynchronizeableVar * var ); 67 67 int registerVarId( SynchronizeableVar * var ); 68 68 69 69 inline void setUniqueID( int id ){ uniqueID = id; } 70 70 inline int getUniqueID() const { return uniqueID; } … … 74 74 inline void setOwner(int owner){ this->owner = owner; } 75 75 76 /** @returns true if this Synchronizeable has to be synchronized over network */76 /** @returns true if this Synchronizeable wants to be synchronized over network */ 77 77 inline bool beSynchronized() { return this->bSynchronize; } 78 78 /** @param bSynchronize sets the Synchronizeable to be sunchronized or not */ … … 92 92 int hostID; //!< my own host id 93 93 bool bSynchronize; //!< do we need beeing synchronized? 94 94 95 95 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 99 99 100 100 };
Note: See TracChangeset
for help on using the changeset viewer.