- Timestamp:
- Nov 22, 2008, 11:54:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network64/src/orxonox/objects/worldentities/MovableEntity.cc
r2171 r2245 84 84 void MovableEntity::registerVariables() 85 85 { 86 REGISTERDATA(this->velocity_.x, direction::toclient);87 REGISTERDATA(this->velocity_.y, direction::toclient);88 REGISTERDATA(this->velocity_.z, direction::toclient);89 90 REGISTERDATA(this->rotationAxis_.x, direction::toclient);91 REGISTERDATA(this->rotationAxis_.y, direction::toclient);92 REGISTERDATA(this->rotationAxis_.z, direction::toclient);93 94 REGISTERDATA(this->rotationRate_, direction::toclient);95 96 REGISTERDATA(this->overwrite_position_, direction::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwritePosition));97 REGISTERDATA(this->overwrite_orientation_, direction::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwriteOrientation));86 registerVariable(this->velocity_.x, variableDirection::toclient); 87 registerVariable(this->velocity_.y, variableDirection::toclient); 88 registerVariable(this->velocity_.z, variableDirection::toclient); 89 90 registerVariable(this->rotationAxis_.x, variableDirection::toclient); 91 registerVariable(this->rotationAxis_.y, variableDirection::toclient); 92 registerVariable(this->rotationAxis_.z, variableDirection::toclient); 93 94 registerVariable(this->rotationRate_, variableDirection::toclient); 95 96 registerVariable(this->overwrite_position_, variableDirection::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwritePosition)); 97 registerVariable(this->overwrite_orientation_, variableDirection::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwriteOrientation)); 98 98 } 99 99
Note: See TracChangeset
for help on using the changeset viewer.