Changeset 5992 in orxonox.OLD for branches/network/src/lib/network/synchronizeable.h
- Timestamp:
- Dec 8, 2005, 5:13:05 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable.h
r5829 r5992 7 7 #define _SYNCHRONIZEABLE_H 8 8 9 #include <base_object.h>9 #include "base_object.h" 10 10 #include "netdefs.h" 11 12 13 14 #include <vector> 15 #include <list> 16 17 //State constants: They have to be of the form 2^n 18 #define STATE_SERVER 1 19 #define STATE_OUTOFSYNC 2 20 11 21 12 22 class Synchronizeable : virtual public BaseObject … … 22 32 virtual void writeDebug() const; 23 33 virtual void readDebug() const; 34 35 36 37 38 39 void setIsServer(bool isServer); 40 void setIsOutOfSync(bool outOfSync); 41 bool isServer(); 42 bool isOutOfSync(); 24 43 25 44 private: 26 45 27 46 int uniqueID; 47 48 49 50 //static std::vector<Synchronizeable*> classList; 51 int owner; 52 int hostID; 53 int state; 54 std::list<int> synchronizeRequests; 28 55 29 56 };
Note: See TracChangeset
for help on using the changeset viewer.