Changeset 2371 for code/branches/presentation/src/orxonox/objects
- Timestamp:
- Dec 10, 2008, 12:50:05 PM (16 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 65 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation
- 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/presentation/src/orxonox/objects/Level.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/Level.cc (added) merged: 2356 /code/branches/network64/src/orxonox/objects/Level.cc (added) merged: 2245
r2261 r2371 83 83 void Level::registerVariables() 84 84 { 85 REGISTERSTRING(this->xmlfilename_, direction::toclient, new NetworkCallback<Level>(this, &Level::networkcallback_applyXMLFile));86 REGISTERSTRING(this->name_, direction::toclient, new NetworkCallback<Level>(this, &Level::changedName));87 REGISTERSTRING(this->description_, direction::toclient);85 registerVariable(this->xmlfilename_, variableDirection::toclient, new NetworkCallback<Level>(this, &Level::networkcallback_applyXMLFile)); 86 registerVariable(this->name_, variableDirection::toclient, new NetworkCallback<Level>(this, &Level::changedName)); 87 registerVariable(this->description_, variableDirection::toclient); 88 88 } 89 89 - Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/Level.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/Level.h (added) merged: 2356 /code/branches/network64/src/orxonox/objects/Level.h (added) merged: 2211
r2261 r2371 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "network/ Synchronisable.h"34 #include "network/synchronisable/Synchronisable.h" 35 35 #include "core/BaseObject.h" 36 36 - Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/Scene.cc
r2171 r2371 114 114 void Scene::registerVariables() 115 115 { 116 REGISTERSTRING(this->skybox_, direction::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applySkybox));117 REGISTERDATA(this->ambientLight_, direction::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applyAmbientLight));116 registerVariable(this->skybox_, variableDirection::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applySkybox)); 117 registerVariable(this->ambientLight_, variableDirection::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applyAmbientLight)); 118 118 } 119 119 -
code/branches/presentation/src/orxonox/objects/Scene.h
r2171 r2371 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "network/ Synchronisable.h"34 #include "network/synchronisable/Synchronisable.h" 35 35 #include "core/BaseObject.h" 36 36 #include "util/Math.h" -
code/branches/presentation/src/orxonox/objects/Test.cc
r2171 r2371 61 61 void Test::setConfigValues() 62 62 { 63 SetConfigValue ( v1, 1 )/*.callback ( this, &Test::checkV1 )*/; 64 SetConfigValue ( v2, 2 )/*.callback ( this, &Test::checkV2 )*/; 65 SetConfigValue ( v3, 3 )/*.callback ( this, &Test::checkV3 )*/; 66 SetConfigValue ( v4, 4 )/*.callback ( this, &Test::checkV4 )*/; 63 SetConfigValue ( u1, 1 )/*.callback ( this, &Test::checkV1 )*/; 64 SetConfigValue ( u2, 2 )/*.callback ( this, &Test::checkV2 )*/; 65 SetConfigValue ( u3, 3 )/*.callback ( this, &Test::checkV3 )*/; 66 SetConfigValue ( u4, 4 )/*.callback ( this, &Test::checkV4 )*/; 67 68 SetConfigValue ( s1, 1 )/*.callback ( this, &Test::checkV1 )*/; 69 SetConfigValue ( s2, 2 )/*.callback ( this, &Test::checkV2 )*/; 70 SetConfigValue ( s3, 3 )/*.callback ( this, &Test::checkV3 )*/; 71 SetConfigValue ( s4, 4 )/*.callback ( this, &Test::checkV4 )*/; 67 72 } 68 73 … … 70 75 void Test::registerVariables() 71 76 { 72 REGISTERDATA ( v1,direction::toclient, new NetworkCallback<Test> ( this, &Test::checkV1 ) ); 73 REGISTERDATA ( v2,direction::toserver, new NetworkCallback<Test> ( this, &Test::checkV2 ) ); 74 REGISTERDATA ( v3,direction::serverMaster, new NetworkCallback<Test> ( this, &Test::checkV3 ) ); 75 REGISTERDATA ( v4,direction::clientMaster, new NetworkCallback<Test> ( this, &Test::checkV4 ) ); 77 registerVariable ( u1, variableDirection::toclient, new NetworkCallback<Test> ( this, &Test::checkU1 )); 78 registerVariable ( u2, variableDirection::toserver, new NetworkCallback<Test> ( this, &Test::checkU2 )); 79 registerVariable ( u3, variableDirection::serverMaster, new NetworkCallback<Test> ( this, &Test::checkU3 ), true ); 80 registerVariable ( u4, variableDirection::clientMaster, new NetworkCallback<Test> ( this, &Test::checkU4 ), true ); 81 82 registerVariable ( s1, variableDirection::toclient, new NetworkCallback<Test> ( this, &Test::checkS1 )); 83 registerVariable ( s2, variableDirection::toserver, new NetworkCallback<Test> ( this, &Test::checkS2 )); 84 registerVariable ( s3, variableDirection::serverMaster, new NetworkCallback<Test> ( this, &Test::checkS3 ), true ); 85 registerVariable ( s4, variableDirection::clientMaster, new NetworkCallback<Test> ( this, &Test::checkS4 ), true ); 76 86 } 77 87 78 void Test::checkV1(){ 79 COUT(1) << "V1 changed: " << v1 << std::endl; 80 } 88 void Test::checkU1(){ COUT(1) << "U1 changed: " << u1 << std::endl; } 89 void Test::checkU2(){ COUT(1) << "U2 changed: " << u2 << std::endl; } 90 void Test::checkU3(){ COUT(1) << "U3 changed: " << u3 << std::endl; } 91 void Test::checkU4(){ COUT(1) << "U4 changed: " << u4 << std::endl; } 81 92 82 void Test::checkV2(){ 83 COUT(1) << "V2 changed: " << v2 << std::endl; 84 } 85 86 void Test::checkV3(){ 87 COUT(1) << "V3 changed: " << v3 << std::endl; 88 } 89 90 void Test::checkV4(){ 91 COUT(1) << "V4 changed: " << v4 << std::endl; 92 } 93 93 void Test::checkS1(){ COUT(1) << "S1 changed: " << s1 << std::endl; } 94 void Test::checkS2(){ COUT(1) << "S2 changed: " << s2 << std::endl; } 95 void Test::checkS3(){ COUT(1) << "S3 changed: " << s3 << std::endl; } 96 void Test::checkS4(){ COUT(1) << "S4 changed: " << s4 << std::endl; } 94 97 95 98 } -
code/branches/presentation/src/orxonox/objects/Test.h
r2171 r2371 32 32 #include "OrxonoxPrereqs.h" 33 33 #include "core/BaseObject.h" 34 #include "network/Synchronisable.h" 34 #include "network/synchronisable/Synchronisable.h" 35 36 37 typedef int TYPE; 38 typedef unsigned int UTYPE; 39 35 40 36 41 namespace orxonox … … 45 50 void registerVariables(); 46 51 47 void setV1(unsigned int value){ v1 = value; }48 void setV2(unsigned int value){ v2 = value; }49 void setV3(unsigned int value){ v3 = value; }50 void setV4(unsigned int value){ v4 = value; }51 52 52 void checkV1(); 53 void checkV2(); 54 void checkV3(); 55 void checkV4(); 53 //unsigned functions 54 void setU1(UTYPE value){ u1 = value; } 55 void setU2(UTYPE value){ u2 = value; } 56 void setU3(UTYPE value){ u3 = value; } 57 void setU4(UTYPE value){ u4 = value; } 58 void checkU1(); 59 void checkU2(); 60 void checkU3(); 61 void checkU4(); 56 62 57 void printV1(){ instance_->checkV1(); } 58 void printV2(){ instance_->checkV2(); } 59 void printV3(){ instance_->checkV3(); } 60 void printV4(){ instance_->checkV4(); } 63 //signed functions 64 void setS1(TYPE value){ s1 = value; } 65 void setS2(TYPE value){ s2 = value; } 66 void setS3(TYPE value){ s3 = value; } 67 void setS4(TYPE value){ s4 = value; } 68 void checkS1(); 69 void checkS2(); 70 void checkS3(); 71 void checkS4(); 72 73 static void printV1(){ instance_->checkU1(); } 74 static void printV2(){ instance_->checkU2(); } 75 static void printV3(){ instance_->checkU3(); } 76 static void printV4(){ instance_->checkU4(); } 61 77 62 78 private: 63 unsigned int v1; 64 unsigned int v2; 65 unsigned int v3; 66 unsigned int v4; 79 UTYPE u1; 80 UTYPE u2; 81 UTYPE u3; 82 UTYPE u4; 83 84 TYPE s1; 85 TYPE s2; 86 TYPE s3; 87 TYPE s4; 67 88 68 89 static Test* instance_; -
code/branches/presentation/src/orxonox/objects/infos/HumanPlayer.cc
r2171 r2371 67 67 void HumanPlayer::registerVariables() 68 68 { 69 REGISTERSTRING(this->synchronize_nick_, direction::toserver, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_changednick));69 registerVariable(this->synchronize_nick_, variableDirection::toserver, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_changednick)); 70 70 71 REGISTERDATA(this->clientID_, direction::toclient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_clientIDchanged));72 REGISTERDATA(this->server_initialized_, direction::toclient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_server_initialized));73 REGISTERDATA(this->client_initialized_, direction::toserver, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_client_initialized));71 registerVariable(this->clientID_, variableDirection::toclient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_clientIDchanged)); 72 registerVariable(this->server_initialized_, variableDirection::toclient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_server_initialized)); 73 registerVariable(this->client_initialized_, variableDirection::toserver, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_client_initialized)); 74 74 } 75 75 … … 99 99 100 100 if (!Core::isMaster()) 101 this->setObjectMode( direction::bidirectional);101 this->setObjectMode(objectDirection::bidirectional); 102 102 else 103 103 this->setName(this->nick_); -
code/branches/presentation/src/orxonox/objects/infos/Info.h
r2171 r2371 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "network/ Synchronisable.h"34 #include "network/synchronisable/Synchronisable.h" 35 35 #include "core/BaseObject.h" 36 36 -
code/branches/presentation/src/orxonox/objects/infos/PlayerInfo.cc
r2171 r2371 69 69 void PlayerInfo::registerVariables() 70 70 { 71 REGISTERSTRING(this->name_, direction::toclient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::changedName));72 REGISTERDATA (this->controllableEntityID_, direction::toclient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::networkcallback_changedcontrollableentityID));73 REGISTERDATA (this->bReadyToSpawn_, direction::toserver);71 registerVariable(this->name_, variableDirection::toclient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::changedName)); 72 registerVariable(this->controllableEntityID_, variableDirection::toclient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::networkcallback_changedcontrollableentityID)); 73 registerVariable(this->bReadyToSpawn_, variableDirection::toserver); 74 74 } 75 75 -
code/branches/presentation/src/orxonox/objects/pickup/Usable.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/pickup/Usable.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/AddQuest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddQuest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/AddQuest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddQuest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/AddQuestHint.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddQuestHint.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/AddQuestHint.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddQuestHint.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/AddReward.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddReward.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/AddReward.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddReward.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/ChangeQuestStatus.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/ChangeQuestStatus.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/ChangeQuestStatus.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/ChangeQuestStatus.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/CompleteQuest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/CompleteQuest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/CompleteQuest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/CompleteQuest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/FailQuest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/FailQuest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/FailQuest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/FailQuest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/GlobalQuest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/GlobalQuest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/GlobalQuest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/GlobalQuest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/LocalQuest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/LocalQuest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/LocalQuest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/LocalQuest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/Quest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/Quest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/Quest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/Quest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/QuestDescription.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestDescription.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/QuestDescription.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestDescription.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/QuestEffect.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestEffect.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/QuestEffect.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestEffect.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/QuestHint.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestHint.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/QuestHint.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestHint.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/QuestItem.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestItem.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/QuestItem.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestItem.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/QuestManager.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestManager.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/QuestManager.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestManager.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/Rewardable.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/Rewardable.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/quest/Rewardable.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/Rewardable.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/weaponSystem/WeaponSystem.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/weaponSystem/WeaponSystem.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/weaponSystem/WeaponSystem.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/weaponSystem/WeaponSystem.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/objects/worldentities/Backlight.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/Backlight.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/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/presentation/src/orxonox/objects/worldentities/Billboard.cc
r2171 r2371 64 64 void Billboard::registerVariables() 65 65 { 66 REGISTERSTRING(this->material_, direction::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedMaterial));67 REGISTERDATA (this->colour_, direction::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedColour));66 registerVariable(this->material_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedMaterial)); 67 registerVariable(this->colour_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedColour)); 68 68 } 69 69 -
code/branches/presentation/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/presentation/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/presentation/src/orxonox/objects/worldentities/ControllableEntity.cc
r2171 r2371 165 165 this->client_overwrite_ = this->server_overwrite_; 166 166 COUT(0) << "CE: bidirectional synchronization" << std::endl; 167 this->setObjectMode( direction::bidirectional);167 this->setObjectMode(objectDirection::bidirectional); 168 168 } 169 169 } … … 178 178 this->playerID_ = OBJECTID_UNKNOWN; 179 179 this->bControlled_ = false; 180 this->setObjectMode( direction::toclient);180 this->setObjectMode(objectDirection::toclient); 181 181 182 182 if (this->bDestroyWhenPlayerLeft_) … … 248 248 void ControllableEntity::registerVariables() 249 249 { 250 REGISTERSTRING(this->cameraPositionTemplate_, direction::toclient);251 252 REGISTERDATA(this->client_overwrite_, direction::toserver);253 254 REGISTERDATA(this->server_position_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerPosition));255 REGISTERDATA(this->server_velocity_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerVelocity));256 REGISTERDATA(this->server_orientation_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerOrientation));257 REGISTERDATA(this->server_overwrite_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processOverwrite));258 259 REGISTERDATA(this->client_position_, direction::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientPosition));260 REGISTERDATA(this->client_velocity_, direction::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientVelocity));261 REGISTERDATA(this->client_orientation_, direction::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientOrientation));262 263 264 REGISTERDATA(this->playerID_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedplayerID));250 registerVariable(this->cameraPositionTemplate_, variableDirection::toclient); 251 252 registerVariable(this->client_overwrite_, variableDirection::toserver); 253 254 registerVariable(this->server_position_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerPosition)); 255 registerVariable(this->server_velocity_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerVelocity)); 256 registerVariable(this->server_orientation_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerOrientation)); 257 registerVariable(this->server_overwrite_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processOverwrite)); 258 259 registerVariable(this->client_position_, variableDirection::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientPosition)); 260 registerVariable(this->client_velocity_, variableDirection::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientVelocity)); 261 registerVariable(this->client_orientation_, variableDirection::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientOrientation)); 262 263 264 registerVariable(this->playerID_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedplayerID)); 265 265 } 266 266 -
code/branches/presentation/src/orxonox/objects/worldentities/Light.cc
r2171 r2371 79 79 void Light::registerVariables() 80 80 { 81 REGISTERDATA(this->type_, direction::toclient, new NetworkCallback<Light>(this, &Light::changedType));82 REGISTERDATA(this->light_->getDiffuseColour(), direction::toclient);83 REGISTERDATA(this->light_->getSpecularColour(), direction::toclient);84 REGISTERDATA(this->light_->getDirection(), direction::toclient);81 registerVariable((int &)this->type_, variableDirection::toclient, new NetworkCallback<Light>(this, &Light::changedType)); 82 registerVariable(this->light_->getDiffuseColour(), variableDirection::toclient); 83 registerVariable(this->light_->getSpecularColour(), variableDirection::toclient); 84 registerVariable(this->light_->getDirection(), variableDirection::toclient); 85 85 } 86 86 -
code/branches/presentation/src/orxonox/objects/worldentities/Model.cc
r2171 r2371 40 40 Model::Model(BaseObject* creator) : PositionableEntity(creator) 41 41 { 42 static unsigned int i=10; 42 43 RegisterObject(Model); 43 44 44 45 this->registerVariables(); 46 this->setObjectPriority(i++); 45 47 } 46 48 … … 61 63 void Model::registerVariables() 62 64 { 63 REGISTERSTRING(this->meshSrc_, direction::toclient, new NetworkCallback<Model>(this, &Model::changedMesh));64 REGISTERDATA(this->bCastShadows_, direction::toclient, new NetworkCallback<Model>(this, &Model::changedShadows));65 registerVariable(this->meshSrc_, variableDirection::toclient, new NetworkCallback<Model>(this, &Model::changedMesh)); 66 registerVariable(this->bCastShadows_, variableDirection::toclient, new NetworkCallback<Model>(this, &Model::changedShadows)); 65 67 } 66 68 -
code/branches/presentation/src/orxonox/objects/worldentities/MovableEntity.cc
r2171 r2371 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 -
code/branches/presentation/src/orxonox/objects/worldentities/ParticleEmitter.cc
r2171 r2371 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/presentation/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/presentation/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/presentation/src/orxonox/objects/worldentities/PositionableEntity.cc
r2171 r2371 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/presentation/src/orxonox/objects/worldentities/WorldEntity.cc
r2171 r2371 96 96 void WorldEntity::registerVariables() 97 97 { 98 REGISTERDATA(this->bActive_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedActivity));99 REGISTERDATA(this->bVisible_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedVisibility));100 101 REGISTERDATA(this->getScale3D().x, direction::toclient);102 REGISTERDATA(this->getScale3D().y, direction::toclient);103 REGISTERDATA(this->getScale3D().z, direction::toclient);104 105 REGISTERDATA(this->parentID_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::updateParent));98 registerVariable(this->bActive_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedActivity)); 99 registerVariable(this->bVisible_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedVisibility)); 100 101 registerVariable(this->getScale3D().x, variableDirection::toclient); 102 registerVariable(this->getScale3D().y, variableDirection::toclient); 103 registerVariable(this->getScale3D().z, variableDirection::toclient); 104 105 registerVariable(this->parentID_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::updateParent)); 106 106 } 107 107 -
code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.h
r2171 r2371 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/presentation/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2171 r2371 80 80 void Pawn::registerVariables() 81 81 { 82 REGISTERDATA(this->bAlive_, direction::toclient);83 REGISTERDATA(this->health_, direction::toclient);82 registerVariable(this->bAlive_, variableDirection::toclient); 83 registerVariable(this->health_, variableDirection::toclient); 84 84 } 85 85 -
code/branches/presentation/src/orxonox/objects/worldentities/pawns/SpaceShip.cc
r2171 r2371 82 82 void SpaceShip::registerVariables() 83 83 { 84 REGISTERDATA(this->maxSpeed_, direction::toclient);85 REGISTERDATA(this->maxSecondarySpeed_, direction::toclient);86 REGISTERDATA(this->maxRotation_, direction::toclient);87 REGISTERDATA(this->translationAcceleration_, direction::toclient);88 REGISTERDATA(this->rotationAcceleration_, direction::toclient);89 REGISTERDATA(this->translationDamping_, direction::toclient);84 registerVariable(this->maxSpeed_, variableDirection::toclient); 85 registerVariable(this->maxSecondarySpeed_, variableDirection::toclient); 86 registerVariable(this->maxRotation_, variableDirection::toclient); 87 registerVariable(this->translationAcceleration_, variableDirection::toclient); 88 registerVariable(this->rotationAcceleration_, variableDirection::toclient); 89 registerVariable(this->translationDamping_, variableDirection::toclient); 90 90 } 91 91 -
code/branches/presentation/src/orxonox/objects/worldentities/pawns/Spectator.cc
r2171 r2371 86 86 void Spectator::registerVariables() 87 87 { 88 REGISTERDATA(this->bGreetingFlareVisible_, direction::toclient, new NetworkCallback<Spectator>(this, &Spectator::changedFlareVisibility));89 REGISTERDATA(this->bGreeting_, direction::toserver, new NetworkCallback<Spectator>(this, &Spectator::changedGreeting));90 REGISTERDATA(this->hudmode_, direction::toclient);88 registerVariable(this->bGreetingFlareVisible_, variableDirection::toclient, new NetworkCallback<Spectator>(this, &Spectator::changedFlareVisibility)); 89 registerVariable(this->bGreeting_, variableDirection::toserver, new NetworkCallback<Spectator>(this, &Spectator::changedGreeting)); 90 registerVariable(this->hudmode_, variableDirection::toclient); 91 91 } 92 92 -
code/branches/presentation/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/presentation/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/presentation/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/presentation/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.