Changeset 2531 for code/branches/bugger/src/orxonox/objects/worldentities
- Timestamp:
- Dec 23, 2008, 11:09:55 PM (15 years ago)
- Location:
- code/branches/bugger
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/bugger
- Property svn:mergeinfo changed
/code/branches/network (added) merged: 2356 /code/branches/network64 (added) merged: 2210-2211,2245-2247,2255,2307,2309-2312,2316,2355
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/Backlight.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/Backlight.cc (added) merged: 2356
r2530 r2531 109 109 void Backlight::registerVariables() 110 110 { 111 REGISTERDATA (this->width_, direction::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_width));112 REGISTERDATA (this->lifetime_, direction::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_lifetime));113 REGISTERDATA (this->length_, direction::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_length));114 REGISTERDATA (this->maxelements_, direction::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_maxelements));115 REGISTERSTRING(this->trailmaterial_, direction::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_trailmaterial));111 registerVariable (this->width_, variableDirection::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_width)); 112 registerVariable (this->lifetime_, variableDirection::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_lifetime)); 113 registerVariable (this->length_, variableDirection::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_length)); 114 registerVariable (this->maxelements_, variableDirection::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_maxelements)); 115 registerVariable (this->trailmaterial_, variableDirection::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_trailmaterial)); 116 116 } 117 117 - Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/Backlight.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/Backlight.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/Billboard.cc
r2254 r2531 67 67 void Billboard::registerVariables() 68 68 { 69 REGISTERSTRING(this->material_, direction::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedMaterial));70 REGISTERDATA (this->colour_, direction::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedColour));69 registerVariable(this->material_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedMaterial)); 70 registerVariable(this->colour_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedColour)); 71 71 } 72 72 -
code/branches/bugger/src/orxonox/objects/worldentities/Camera.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/Camera.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/Camera.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/Camera.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/ControllableEntity.cc
r2478 r2531 238 238 { 239 239 this->client_overwrite_ = this->server_overwrite_; 240 this->setObjectMode( direction::bidirectional);240 this->setObjectMode(objectDirection::bidirectional); 241 241 } 242 242 } … … 252 252 this->bHasLocalController_ = false; 253 253 this->bHasHumanController_ = false; 254 this->setObjectMode( direction::toclient);254 this->setObjectMode(objectDirection::toclient); 255 255 256 256 if (this->bDestroyWhenPlayerLeft_) … … 345 345 void ControllableEntity::registerVariables() 346 346 { 347 REGISTERSTRING(this->cameraPositionTemplate_, direction::toclient);348 REGISTERSTRING(this->hudtemplate_, direction::toclient);349 350 REGISTERDATA(this->client_overwrite_, direction::toserver);351 352 REGISTERDATA(this->server_position_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerPosition));353 REGISTERDATA(this->server_velocity_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerVelocity));354 REGISTERDATA(this->server_orientation_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerOrientation));355 REGISTERDATA(this->server_overwrite_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processOverwrite));356 357 REGISTERDATA(this->client_position_, direction::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientPosition));358 REGISTERDATA(this->client_velocity_, direction::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientVelocity));359 REGISTERDATA(this->client_orientation_, direction::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientOrientation));360 361 362 REGISTERDATA(this->playerID_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedplayerID));363 REGISTERDATA(this->gtinfoID_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedgtinfoID));347 registerVariable(this->cameraPositionTemplate_, variableDirection::toclient); 348 registerVariable(this->hudtemplate_, variableDirection::toclient); 349 350 registerVariable(this->client_overwrite_, variableDirection::toserver); 351 352 registerVariable(this->server_position_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerPosition)); 353 registerVariable(this->server_velocity_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerVelocity)); 354 registerVariable(this->server_orientation_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerOrientation)); 355 registerVariable(this->server_overwrite_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processOverwrite)); 356 357 registerVariable(this->client_position_, variableDirection::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientPosition)); 358 registerVariable(this->client_velocity_, variableDirection::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientVelocity)); 359 registerVariable(this->client_orientation_, variableDirection::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientOrientation)); 360 361 362 registerVariable(this->playerID_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedplayerID)); 363 registerVariable(this->gtinfoID_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedgtinfoID)); 364 364 } 365 365 -
code/branches/bugger/src/orxonox/objects/worldentities/ExplosionChunk.cc
r2422 r2531 91 91 void ExplosionChunk::registerVariables() 92 92 { 93 REGISTERDATA(this->LOD_, direction::toclient, new NetworkCallback<ExplosionChunk>(this, &ExplosionChunk::LODchanged));94 REGISTERDATA(this->bStop_, direction::toclient, new NetworkCallback<ExplosionChunk>(this, &ExplosionChunk::checkStop));93 registerVariable((int&)this->LOD_, variableDirection::toclient, new NetworkCallback<ExplosionChunk>(this, &ExplosionChunk::LODchanged)); 94 registerVariable(this->bStop_, variableDirection::toclient, new NetworkCallback<ExplosionChunk>(this, &ExplosionChunk::checkStop)); 95 95 } 96 96 -
code/branches/bugger/src/orxonox/objects/worldentities/FadingBillboard.cc
r2361 r2531 66 66 void FadingBillboard::registerVariables() 67 67 { 68 REGISTERDATA(this->turnontime_, direction::toclient);69 REGISTERDATA(this->turnofftime_, direction::toclient);68 registerVariable(this->turnontime_, variableDirection::toclient); 69 registerVariable(this->turnofftime_, variableDirection::toclient); 70 70 } 71 71 -
code/branches/bugger/src/orxonox/objects/worldentities/Light.cc
r2447 r2531 103 103 void Light::registerVariables() 104 104 { 105 REGISTERDATA(this->type_, direction::toclient, new NetworkCallback<Light>(this, &Light::updateType));106 REGISTERDATA(this->diffuse_, direction::toclient, new NetworkCallback<Light>(this, &Light::updateDiffuseColour));107 REGISTERDATA(this->specular_, direction::toclient, new NetworkCallback<Light>(this, &Light::updateSpecularColour));108 REGISTERDATA(this->attenuation_, direction::toclient, new NetworkCallback<Light>(this, &Light::updateAttenuation));109 REGISTERDATA(this->spotlightRange_, direction::toclient, new NetworkCallback<Light>(this, &Light::updateSpotlightRange));105 registerVariable((int &)this->type_, variableDirection::toclient, new NetworkCallback<Light>(this, &Light::updateType)); 106 registerVariable(this->diffuse_, variableDirection::toclient, new NetworkCallback<Light>(this, &Light::updateDiffuseColour)); 107 registerVariable(this->specular_, variableDirection::toclient, new NetworkCallback<Light>(this, &Light::updateSpecularColour)); 108 registerVariable(this->attenuation_, variableDirection::toclient, new NetworkCallback<Light>(this, &Light::updateAttenuation)); 109 registerVariable(this->spotlightRange_, variableDirection::toclient, new NetworkCallback<Light>(this, &Light::updateSpotlightRange)); 110 110 } 111 111 -
code/branches/bugger/src/orxonox/objects/worldentities/Model.cc
r2447 r2531 40 40 Model::Model(BaseObject* creator) : PositionableEntity(creator) 41 41 { 42 static unsigned int i=10; 42 43 RegisterObject(Model); 43 44 … … 45 46 46 47 this->registerVariables(); 48 this->setObjectPriority(i++); 47 49 } 48 50 … … 63 65 void Model::registerVariables() 64 66 { 65 REGISTERSTRING(this->meshSrc_, direction::toclient, new NetworkCallback<Model>(this, &Model::changedMesh));66 REGISTERDATA(this->bCastShadows_, direction::toclient, new NetworkCallback<Model>(this, &Model::changedShadows));67 registerVariable(this->meshSrc_, variableDirection::toclient, new NetworkCallback<Model>(this, &Model::changedMesh)); 68 registerVariable(this->bCastShadows_, variableDirection::toclient, new NetworkCallback<Model>(this, &Model::changedShadows)); 67 69 } 68 70 -
code/branches/bugger/src/orxonox/objects/worldentities/MovableEntity.cc
r2422 r2531 85 85 void MovableEntity::registerVariables() 86 86 { 87 REGISTERDATA(this->velocity_.x, direction::toclient);88 REGISTERDATA(this->velocity_.y, direction::toclient);89 REGISTERDATA(this->velocity_.z, direction::toclient);90 91 REGISTERDATA(this->rotationAxis_.x, direction::toclient);92 REGISTERDATA(this->rotationAxis_.y, direction::toclient);93 REGISTERDATA(this->rotationAxis_.z, direction::toclient);94 95 REGISTERDATA(this->rotationRate_, direction::toclient);96 97 REGISTERDATA(this->overwrite_position_, direction::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwritePosition));98 REGISTERDATA(this->overwrite_orientation_, direction::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwriteOrientation));87 registerVariable(this->velocity_.x, variableDirection::toclient); 88 registerVariable(this->velocity_.y, variableDirection::toclient); 89 registerVariable(this->velocity_.z, variableDirection::toclient); 90 91 registerVariable(this->rotationAxis_.x, variableDirection::toclient); 92 registerVariable(this->rotationAxis_.y, variableDirection::toclient); 93 registerVariable(this->rotationAxis_.z, variableDirection::toclient); 94 95 registerVariable(this->rotationRate_, variableDirection::toclient); 96 97 registerVariable(this->overwrite_position_, variableDirection::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwritePosition)); 98 registerVariable(this->overwrite_orientation_, variableDirection::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwriteOrientation)); 99 99 } 100 100 -
code/branches/bugger/src/orxonox/objects/worldentities/ParticleEmitter.cc
r2414 r2531 75 75 void ParticleEmitter::registerVariables() 76 76 { 77 REGISTERSTRING(this->source_, direction::toclient, new NetworkCallback<ParticleEmitter>(this, &ParticleEmitter::sourceChanged));78 REGISTERDATA (this->LOD_, direction::toclient, new NetworkCallback<ParticleEmitter>(this, &ParticleEmitter::LODchanged));77 registerVariable(this->source_, variableDirection::toclient, new NetworkCallback<ParticleEmitter>(this, &ParticleEmitter::sourceChanged)); 78 registerVariable((int&)(this->LOD_), variableDirection::toclient, new NetworkCallback<ParticleEmitter>(this, &ParticleEmitter::LODchanged)); 79 79 } 80 80 -
code/branches/bugger/src/orxonox/objects/worldentities/ParticleSpawner.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/ParticleSpawner.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/ParticleSpawner.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/ParticleSpawner.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/PositionableEntity.cc
r2171 r2531 48 48 void PositionableEntity::registerVariables() 49 49 { 50 REGISTERDATA(this->getPosition().x, direction::toclient);51 REGISTERDATA(this->getPosition().y, direction::toclient);52 REGISTERDATA(this->getPosition().z, direction::toclient);50 registerVariable(this->getPosition().x, variableDirection::toclient); 51 registerVariable(this->getPosition().y, variableDirection::toclient); 52 registerVariable(this->getPosition().z, variableDirection::toclient); 53 53 54 REGISTERDATA(this->getOrientation().w, direction::toclient);55 REGISTERDATA(this->getOrientation().x, direction::toclient);56 REGISTERDATA(this->getOrientation().y, direction::toclient);57 REGISTERDATA(this->getOrientation().z, direction::toclient);54 registerVariable(this->getOrientation().w, variableDirection::toclient); 55 registerVariable(this->getOrientation().x, variableDirection::toclient); 56 registerVariable(this->getOrientation().y, variableDirection::toclient); 57 registerVariable(this->getOrientation().z, variableDirection::toclient); 58 58 } 59 59 } -
code/branches/bugger/src/orxonox/objects/worldentities/WorldEntity.cc
r2478 r2531 105 105 void WorldEntity::registerVariables() 106 106 { 107 REGISTERSTRING(this->mainStateName_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedMainState));107 registerVariable(this->mainStateName_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedMainState)); 108 108 109 REGISTERDATA(this->bActive_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedActivity));110 REGISTERDATA(this->bVisible_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedVisibility));111 112 REGISTERDATA(this->getScale3D().x, direction::toclient);113 REGISTERDATA(this->getScale3D().y, direction::toclient);114 REGISTERDATA(this->getScale3D().z, direction::toclient);115 116 REGISTERDATA(this->parentID_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::updateParent));109 registerVariable(this->bActive_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedActivity)); 110 registerVariable(this->bVisible_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedVisibility)); 111 112 registerVariable(this->getScale3D().x, variableDirection::toclient); 113 registerVariable(this->getScale3D().y, variableDirection::toclient); 114 registerVariable(this->getScale3D().z, variableDirection::toclient); 115 116 registerVariable(this->parentID_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::updateParent)); 117 117 } 118 118 -
code/branches/bugger/src/orxonox/objects/worldentities/WorldEntity.h
r2478 r2531 36 36 #include <OgreSceneNode.h> 37 37 38 #include "network/ Synchronisable.h"38 #include "network/synchronisable/Synchronisable.h" 39 39 #include "core/BaseObject.h" 40 40 #include "util/Math.h" -
code/branches/bugger/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2530 r2531 99 99 void Pawn::registerVariables() 100 100 { 101 REGISTERDATA(this->bAlive_, direction::toclient);102 REGISTERDATA(this->health_, direction::toclient);103 REGISTERDATA(this->initialHealth_, direction::toclient);101 registerVariable(this->bAlive_, variableDirection::toclient); 102 registerVariable(this->health_, variableDirection::toclient); 103 registerVariable(this->initialHealth_, variableDirection::toclient); 104 104 } 105 105 -
code/branches/bugger/src/orxonox/objects/worldentities/pawns/SpaceShip.cc
r2478 r2531 85 85 void SpaceShip::registerVariables() 86 86 { 87 REGISTERDATA(this->maxRotation_, direction::toclient);88 REGISTERDATA(this->rotationAcceleration_, direction::toclient);89 REGISTERDATA(this->translationDamping_, direction::toclient);87 registerVariable(this->maxRotation_, variableDirection::toclient); 88 registerVariable(this->rotationAcceleration_, variableDirection::toclient); 89 registerVariable(this->translationDamping_, variableDirection::toclient); 90 90 } 91 91 -
code/branches/bugger/src/orxonox/objects/worldentities/pawns/Spectator.cc
r2478 r2531 91 91 void Spectator::registerVariables() 92 92 { 93 REGISTERDATA(this->bGreetingFlareVisible_, direction::toclient, new NetworkCallback<Spectator>(this, &Spectator::changedFlareVisibility));94 REGISTERDATA(this->bGreeting_, direction::toserver, new NetworkCallback<Spectator>(this, &Spectator::changedGreeting));93 registerVariable(this->bGreetingFlareVisible_, variableDirection::toclient, new NetworkCallback<Spectator>(this, &Spectator::changedFlareVisibility)); 94 registerVariable(this->bGreeting_, variableDirection::toserver, new NetworkCallback<Spectator>(this, &Spectator::changedGreeting)); 95 95 } 96 96 -
code/branches/bugger/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/triggers/Trigger.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/triggers/Trigger.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/triggers/Trigger.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/triggers/Trigger.h (added) merged: 2356
- Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.