Changeset 3257 for code/branches/core4/src/network/synchronisable
- Timestamp:
- Jun 30, 2009, 3:14:45 PM (15 years ago)
- Location:
- code/branches/core4/src/network/synchronisable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/network/synchronisable/Synchronisable.cc
r3239 r3257 65 65 this->dataSize_ = 0; 66 66 // set standard priority 67 this->setPriority( priority::normal );67 this->setPriority( Priority::Normal ); 68 68 69 69 // get creator id -
code/branches/core4/src/network/synchronisable/Synchronisable.h
r3214 r3257 51 51 { 52 52 53 namespace objectDirection{54 enum objectdirection{55 toclient=0x1,56 toserver=0x2,57 bidirectional=0x353 namespace ObjectDirection{ 54 enum Value{ 55 ToClient=0x1, 56 ToServer=0x2, 57 Bidirectional=0x3 58 58 }; 59 59 } 60 60 61 namespace priority{62 enum prio{63 very_high= -100,64 high = -15,65 normal = 0,66 low = 15,67 very_low= 10061 namespace Priority{ 62 enum Value{ 63 VeryHigh = -100, 64 High = -15, 65 Normal = 0, 66 Low = 15, 67 VeryLow = 100 68 68 }; 69 69 } -
code/branches/core4/src/network/synchronisable/SynchronisableVariable.h
r3214 r3257 41 41 namespace orxonox{ 42 42 43 namespace variableDirection{44 enum syncdirection{45 toclient=0x1,46 toserver=0x243 namespace VariableDirection{ 44 enum Value{ 45 ToClient=0x1, 46 ToServer=0x2 47 47 }; 48 enum bidirectional{ 49 serverMaster=0x1, 50 clientMaster=0x2 48 } 49 namespace Bidirectionality{ 50 enum Value{ 51 ServerMaster=0x1, 52 ClientMaster=0x2 51 53 }; 52 54 } … … 69 71 { 70 72 public: 71 SynchronisableVariable(T& variable, uint8_t syncDirection= variableDirection::toclient, NetworkCallbackBase *cb=0);73 SynchronisableVariable(T& variable, uint8_t syncDirection=VariableDirection::ToClient, NetworkCallbackBase *cb=0); 72 74 virtual ~SynchronisableVariable(); 73 75 … … 88 90 { 89 91 public: 90 SynchronisableVariableBidirectional(T& variable, uint8_t master= variableDirection::serverMaster, NetworkCallbackBase *cb=0);92 SynchronisableVariableBidirectional(T& variable, uint8_t master=Bidirectionality::ServerMaster, NetworkCallbackBase *cb=0); 91 93 virtual ~SynchronisableVariableBidirectional(); 92 94
Note: See TracChangeset
for help on using the changeset viewer.