Changeset 2485 for code/branches/presentation/src/orxonox/objects/items
- Timestamp:
- Dec 16, 2008, 6:01:13 PM (16 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 1 edited
- 8 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation
-
code/branches/presentation/src/orxonox/objects/items/Engine.cc
r2480 r2485 104 104 void Engine::registerVariables() 105 105 { 106 REGISTERDATA(this->shipID_, direction::toclient, new NetworkCallback<Engine>(this, &Engine::networkcallback_shipID));107 108 REGISTERDATA(this->speedFactor_, direction::toclient);109 REGISTERDATA(this->boostFactor_, direction::toclient);110 111 REGISTERDATA(this->maxSpeedFront_, direction::toclient);112 REGISTERDATA(this->maxSpeedBack_, direction::toclient);113 REGISTERDATA(this->maxSpeedLeftRight_, direction::toclient);114 REGISTERDATA(this->maxSpeedUpDown_, direction::toclient);115 116 REGISTERDATA(this->accelerationFront_, direction::toclient);117 REGISTERDATA(this->accelerationBrake_, direction::toclient);118 REGISTERDATA(this->accelerationBack_, direction::toclient);119 REGISTERDATA(this->accelerationLeftRight_, direction::toclient);120 REGISTERDATA(this->accelerationUpDown_, direction::toclient);106 registerVariable(this->shipID_, variableDirection::toclient, new NetworkCallback<Engine>(this, &Engine::networkcallback_shipID)); 107 108 registerVariable(this->speedFactor_, variableDirection::toclient); 109 registerVariable(this->boostFactor_, variableDirection::toclient); 110 111 registerVariable(this->maxSpeedFront_, variableDirection::toclient); 112 registerVariable(this->maxSpeedBack_, variableDirection::toclient); 113 registerVariable(this->maxSpeedLeftRight_, variableDirection::toclient); 114 registerVariable(this->maxSpeedUpDown_, variableDirection::toclient); 115 116 registerVariable(this->accelerationFront_, variableDirection::toclient); 117 registerVariable(this->accelerationBrake_, variableDirection::toclient); 118 registerVariable(this->accelerationBack_, variableDirection::toclient); 119 registerVariable(this->accelerationLeftRight_, variableDirection::toclient); 120 registerVariable(this->accelerationUpDown_, variableDirection::toclient); 121 121 } 122 122 -
code/branches/presentation/src/orxonox/objects/items/Item.h
r2480 r2485 33 33 34 34 #include "core/BaseObject.h" 35 #include "network/ Synchronisable.h"35 #include "network/synchronisable/Synchronisable.h" 36 36 37 37 namespace orxonox -
code/branches/presentation/src/orxonox/objects/items/MultiStateEngine.cc
r2480 r2485 83 83 void MultiStateEngine::registerVariables() 84 84 { 85 REGISTERDATA(this->state_, direction::toserver);85 registerVariable(this->state_, variableDirection::toserver); 86 86 } 87 87 … … 92 92 if (this->getShip()->hasLocalController()) 93 93 { 94 this->setObjectMode( direction::bidirectional);94 this->setObjectMode(objectDirection::bidirectional); 95 95 96 96 const Vector3& direction = this->getDirection();
Note: See TracChangeset
for help on using the changeset viewer.