Changeset 10478 for code/branches/core7/src/orxonox
- Timestamp:
- May 25, 2015, 5:37:15 PM (10 years ago)
- Location:
- code/branches/core7/src/orxonox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/orxonox/Test.cc
r10465 r10478 105 105 void Test::call(unsigned int clientID) 106 106 { 107 callStaticNetworkFunction( 108 callStaticNetworkFunction( 107 callStaticNetworkFunction(&Test::printV1, clientID ); 108 callStaticNetworkFunction(&Test::printV1, clientID ); 109 109 } 110 110 111 111 void Test::call2(unsigned int clientID, std::string s1, std::string s2, std::string s3, std::string s4) 112 112 { 113 callMemberNetworkFunction( Test,printBlaBla, this->getObjectID(), clientID, s1, s2, s3, s4, s4 );113 callMemberNetworkFunction( &Test::printBlaBla, this->getObjectID(), clientID, s1, s2, s3, s4, s4 ); 114 114 } 115 115 … … 130 130 // if(!Core::isMaster()) 131 131 // call2(0, "bal", "a", "n", "ce"); 132 // callMemberNetworkFunction( Test,checkU1, this->getObjectID(), 0 );132 // callMemberNetworkFunction( &Test::checkU1, this->getObjectID(), 0 ); 133 133 } 134 134 -
code/branches/core7/src/orxonox/infos/GametypeInfo.cc
r10465 r10478 369 369 this->changedReadyToSpawn(ready); 370 370 else 371 callMemberNetworkFunction( GametypeInfo,changedReadyToSpawn, this->getObjectID(), player->getClientID(), ready);371 callMemberNetworkFunction(&GametypeInfo::changedReadyToSpawn, this->getObjectID(), player->getClientID(), ready); 372 372 } 373 373 } … … 388 388 this->changedSpawned(spawned); 389 389 else 390 callMemberNetworkFunction( GametypeInfo,changedSpawned, this->getObjectID(), player->getClientID(), spawned);390 callMemberNetworkFunction(&GametypeInfo::changedSpawned, this->getObjectID(), player->getClientID(), spawned); 391 391 } 392 392 } … … 399 399 if (GameMode::isMaster()) 400 400 { 401 callMemberNetworkFunction( GametypeInfo,dispatchAnnounceMessage, this->getObjectID(), NETWORK_PEER_ID_BROADCAST, message);401 callMemberNetworkFunction(&GametypeInfo::dispatchAnnounceMessage, this->getObjectID(), NETWORK_PEER_ID_BROADCAST, message); 402 402 this->dispatchAnnounceMessage(message); 403 403 } … … 411 411 this->dispatchAnnounceMessage(message); 412 412 else 413 callMemberNetworkFunction( GametypeInfo,dispatchAnnounceMessage, this->getObjectID(), clientID, message);413 callMemberNetworkFunction(&GametypeInfo::dispatchAnnounceMessage, this->getObjectID(), clientID, message); 414 414 } 415 415 } … … 422 422 this->dispatchKillMessage(message); 423 423 else 424 callMemberNetworkFunction( GametypeInfo,dispatchKillMessage, this->getObjectID(), clientID, message);424 callMemberNetworkFunction(&GametypeInfo::dispatchKillMessage, this->getObjectID(), clientID, message); 425 425 } 426 426 } … … 433 433 this->dispatchDeathMessage(message); 434 434 else 435 callMemberNetworkFunction( GametypeInfo,dispatchDeathMessage, this->getObjectID(), clientID, message);435 callMemberNetworkFunction(&GametypeInfo::dispatchDeathMessage, this->getObjectID(), clientID, message); 436 436 } 437 437 } … … 444 444 this->dispatchStaticMessage(message, colour); 445 445 else 446 callMemberNetworkFunction( GametypeInfo,dispatchStaticMessage, this->getObjectID(), clientID, message, colour);446 callMemberNetworkFunction(&GametypeInfo::dispatchStaticMessage, this->getObjectID(), clientID, message, colour); 447 447 } 448 448 } … … 455 455 this->dispatchFadingMessage(message); 456 456 else 457 callMemberNetworkFunction( GametypeInfo,dispatchFadingMessage, this->getObjectID(), clientID, message);457 callMemberNetworkFunction(&GametypeInfo::dispatchFadingMessage, this->getObjectID(), clientID, message); 458 458 } 459 459 } -
code/branches/core7/src/orxonox/interfaces/NotificationListener.cc
r10465 r10478 84 84 else if(GameMode::isServer() && sendMode == notificationSendMode::network && Host::getPlayerID() != clientId) 85 85 { 86 callStaticNetworkFunction( NotificationListener::sendHelper, clientId, message, sender, isCommand, (unsigned int)messageType);86 callStaticNetworkFunction(&NotificationListener::sendHelper, clientId, message, sender, isCommand, (unsigned int)messageType); 87 87 } 88 88 else if(GameMode::isServer() && sendMode == notificationSendMode::broadcast) 89 89 { 90 90 // TODO: Works as intended? 91 callStaticNetworkFunction( NotificationListener::sendHelper, NETWORK_PEER_ID_BROADCAST, message, sender, isCommand, (unsigned int)messageType);91 callStaticNetworkFunction(&NotificationListener::sendHelper, NETWORK_PEER_ID_BROADCAST, message, sender, isCommand, (unsigned int)messageType); 92 92 } 93 93 } -
code/branches/core7/src/orxonox/worldentities/ControllableEntity.cc
r10465 r10478 307 307 else 308 308 { 309 callMemberNetworkFunction( ControllableEntity,fire, this->getObjectID(), 0, firemode);309 callMemberNetworkFunction(&ControllableEntity::fire, this->getObjectID(), 0, firemode); 310 310 } 311 311 } … … 323 323 if ( target != 0 ) 324 324 { 325 callMemberNetworkFunction( ControllableEntity,setTargetInternal, this->getObjectID(), 0, target->getObjectID() );325 callMemberNetworkFunction(&ControllableEntity::setTargetInternal, this->getObjectID(), 0, target->getObjectID() ); 326 326 } 327 327 else 328 328 { 329 callMemberNetworkFunction( ControllableEntity,setTargetInternal, this->getObjectID(), 0, OBJECTID_UNKNOWN );329 callMemberNetworkFunction(&ControllableEntity::setTargetInternal, this->getObjectID(), 0, OBJECTID_UNKNOWN ); 330 330 } 331 331 }
Note: See TracChangeset
for help on using the changeset viewer.