Changeset 3280 for code/trunk/src/orxonox/objects/items
- Timestamp:
- Jul 12, 2009, 11:58:01 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 (added) merged: 3235-3237,3245-3250,3253-3254,3260-3261,3265,3270
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/items/Engine.cc
r3196 r3280 113 113 void Engine::registerVariables() 114 114 { 115 registerVariable(this->shipID_, variableDirection::toclient, new NetworkCallback<Engine>(this, &Engine::networkcallback_shipID));116 117 registerVariable(this->speedFactor_, variableDirection::toclient);118 registerVariable(this->boostFactor_, variableDirection::toclient);119 120 registerVariable(this->maxSpeedFront_, variableDirection::toclient);121 registerVariable(this->maxSpeedBack_, variableDirection::toclient);122 registerVariable(this->maxSpeedLeftRight_, variableDirection::toclient);123 registerVariable(this->maxSpeedUpDown_, variableDirection::toclient);124 125 registerVariable(this->accelerationFront_, variableDirection::toclient);126 registerVariable(this->accelerationBrake_, variableDirection::toclient);127 registerVariable(this->accelerationBack_, variableDirection::toclient);128 registerVariable(this->accelerationLeftRight_, variableDirection::toclient);129 registerVariable(this->accelerationUpDown_, variableDirection::toclient);115 registerVariable(this->shipID_, VariableDirection::ToClient, new NetworkCallback<Engine>(this, &Engine::networkcallback_shipID)); 116 117 registerVariable(this->speedFactor_, VariableDirection::ToClient); 118 registerVariable(this->boostFactor_, VariableDirection::ToClient); 119 120 registerVariable(this->maxSpeedFront_, VariableDirection::ToClient); 121 registerVariable(this->maxSpeedBack_, VariableDirection::ToClient); 122 registerVariable(this->maxSpeedLeftRight_, VariableDirection::ToClient); 123 registerVariable(this->maxSpeedUpDown_, VariableDirection::ToClient); 124 125 registerVariable(this->accelerationFront_, VariableDirection::ToClient); 126 registerVariable(this->accelerationBrake_, VariableDirection::ToClient); 127 registerVariable(this->accelerationBack_, VariableDirection::ToClient); 128 registerVariable(this->accelerationLeftRight_, VariableDirection::ToClient); 129 registerVariable(this->accelerationUpDown_, VariableDirection::ToClient); 130 130 } 131 131 -
code/trunk/src/orxonox/objects/items/MultiStateEngine.cc
r3196 r3280 82 82 void MultiStateEngine::registerVariables() 83 83 { 84 registerVariable(this->state_, variableDirection::toserver);84 registerVariable(this->state_, VariableDirection::ToServer); 85 85 } 86 86 … … 91 91 if (this->getShip()->hasLocalController()) 92 92 { 93 this->setObjectMode( objectDirection::bidirectional);93 this->setObjectMode(ObjectDirection::Bidirectional); 94 94 95 95 const Vector3& direction = this->getDirection();
Note: See TracChangeset
for help on using the changeset viewer.