Changeset 6043 in orxonox.OLD for branches/network/src/lib/network/synchronizeable.h
- Timestamp:
- Dec 11, 2005, 2:07:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable.h
r5997 r6043 29 29 30 30 virtual void writeBytes(const byte* data, int length); 31 virtual int readBytes(byte* data );31 virtual int readBytes(byte* data, int maxLength, int& reciever); 32 32 virtual void writeDebug() const; 33 33 virtual void readDebug() const; 34 35 36 37 38 39 void setIsServer(bool isServer); 40 void setIsOutOfSync(bool outOfSync); 34 35 void setIsServer( bool isServer ); 36 void setIsOutOfSync( bool outOfSync ); 41 37 bool isServer(); 42 38 bool isOutOfSync(); 39 void setUniqueId( int id ){ uniqueID = id; } 40 int getUniqueID() const { return uniqueID; }; 41 void requestSync( int hostID ){ this->synchronizeRequests.push_back( hostID ); } 42 43 inline int getOwner(){ return owner; } 44 inline void setOwner(int owner){ this->owner = owner; } 43 45 44 46 private: 45 47 46 48 int uniqueID; 47 48 49 49 50 51 50 52 //static std::vector<Synchronizeable*> classList; 51 53 int owner;
Note: See TracChangeset
for help on using the changeset viewer.