Changeset 3257 for code/branches/core4/src/orxonox/objects/infos
- Timestamp:
- Jun 30, 2009, 3:14:45 PM (16 years ago)
- Location:
- code/branches/core4/src/orxonox/objects/infos
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/orxonox/objects/infos/GametypeInfo.cc
r3196 r3257 61 61 void GametypeInfo::registerVariables() 62 62 { 63 registerVariable(this->bStarted_, variableDirection::toclient);64 registerVariable(this->bEnded_, variableDirection::toclient);65 registerVariable(this->startCountdown_, variableDirection::toclient);66 registerVariable(this->bStartCountdownRunning_, variableDirection::toclient);67 registerVariable(this->hudtemplate_, variableDirection::toclient);63 registerVariable(this->bStarted_, VariableDirection::ToClient); 64 registerVariable(this->bEnded_, VariableDirection::ToClient); 65 registerVariable(this->startCountdown_, VariableDirection::ToClient); 66 registerVariable(this->bStartCountdownRunning_, VariableDirection::ToClient); 67 registerVariable(this->hudtemplate_, VariableDirection::ToClient); 68 68 } 69 69 -
code/branches/core4/src/orxonox/objects/infos/HumanPlayer.cc
r3196 r3257 79 79 void HumanPlayer::registerVariables() 80 80 { 81 registerVariable(this->synchronize_nick_, variableDirection::toserver, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_changednick));81 registerVariable(this->synchronize_nick_, VariableDirection::ToServer, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_changednick)); 82 82 83 registerVariable(this->clientID_, variableDirection::toclient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_clientIDchanged));84 registerVariable(this->server_initialized_, variableDirection::toclient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_server_initialized));85 registerVariable(this->client_initialized_, variableDirection::toserver, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_client_initialized));83 registerVariable(this->clientID_, VariableDirection::ToClient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_clientIDchanged)); 84 registerVariable(this->server_initialized_, VariableDirection::ToClient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_server_initialized)); 85 registerVariable(this->client_initialized_, VariableDirection::ToServer, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_client_initialized)); 86 86 } 87 87 … … 116 116 117 117 if (!GameMode::isMaster()) 118 this->setObjectMode( objectDirection::bidirectional);118 this->setObjectMode(ObjectDirection::Bidirectional); 119 119 else 120 120 this->setName(this->nick_); -
code/branches/core4/src/orxonox/objects/infos/PlayerInfo.cc
r3239 r3257 77 77 void PlayerInfo::registerVariables() 78 78 { 79 registerVariable(this->name_, variableDirection::toclient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::changedName));80 registerVariable(this->controllableEntityID_, variableDirection::toclient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::networkcallback_changedcontrollableentityID));81 registerVariable(this->bReadyToSpawn_, variableDirection::toserver);82 registerVariable(this->gtinfoID_, variableDirection::toclient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::networkcallback_changedgtinfoID));79 registerVariable(this->name_, VariableDirection::ToClient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::changedName)); 80 registerVariable(this->controllableEntityID_, VariableDirection::ToClient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::networkcallback_changedcontrollableentityID)); 81 registerVariable(this->bReadyToSpawn_, VariableDirection::ToServer); 82 registerVariable(this->gtinfoID_, VariableDirection::ToClient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::networkcallback_changedgtinfoID)); 83 83 } 84 84
Note: See TracChangeset
for help on using the changeset viewer.