Changeset 11071 for code/trunk/src/orxonox/infos/GametypeInfo.cc
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (8 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/infos/GametypeInfo.cc
r10624 r11071 291 291 if(GameMode::isMaster()) 292 292 { 293 NotificationListener::sendNotification("Press [Fire] to respawn", GametypeInfo::NOTIFICATION_SENDER, notificationMessageType::info, notificationSendMode::network, player->getClientID());293 NotificationListener::sendNotification("Press [Fire] to respawn", GametypeInfo::NOTIFICATION_SENDER, NotificationMessageType::info, NotificationSendMode::network, player->getClientID()); 294 294 // Remove the player from the list of players that have spawned, since it currently is not. 295 295 this->spawnedPlayers_.erase(player); … … 346 346 // Display "Press [Fire] to start the match" if the game has not yet ended. 347 347 if(!this->hasEnded()) 348 NotificationListener::sendNotification("Press [Fire] to start the match", GametypeInfo::NOTIFICATION_SENDER, notificationMessageType::info, notificationSendMode::network, player->getClientID());348 NotificationListener::sendNotification("Press [Fire] to start the match", GametypeInfo::NOTIFICATION_SENDER, NotificationMessageType::info, NotificationSendMode::network, player->getClientID()); 349 349 // Else display "Game has ended". 350 350 else 351 NotificationListener::sendNotification("Game has ended", GametypeInfo::NOTIFICATION_SENDER, notificationMessageType::info, notificationSendMode::network, player->getClientID());351 NotificationListener::sendNotification("Game has ended", GametypeInfo::NOTIFICATION_SENDER, NotificationMessageType::info, NotificationSendMode::network, player->getClientID()); 352 352 } 353 353 } … … 461 461 void GametypeInfo::dispatchAnnounceMessage(const std::string& message) const 462 462 { 463 for ( ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it)464 it->announcemessage(this, message);463 for (GametypeMessageListener* listener : ObjectList<GametypeMessageListener>()) 464 listener->announcemessage(this, message); 465 465 } 466 466 467 467 void GametypeInfo::dispatchKillMessage(const std::string& message) const 468 468 { 469 for ( ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it)470 it->killmessage(this, message);469 for (GametypeMessageListener* listener : ObjectList<GametypeMessageListener>()) 470 listener->killmessage(this, message); 471 471 } 472 472 473 473 void GametypeInfo::dispatchDeathMessage(const std::string& message) const 474 474 { 475 for ( ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it)476 it->deathmessage(this, message);475 for (GametypeMessageListener* listener : ObjectList<GametypeMessageListener>()) 476 listener->deathmessage(this, message); 477 477 } 478 478 479 479 void GametypeInfo::dispatchStaticMessage(const std::string& message, const ColourValue& colour) const 480 480 { 481 for ( ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it)482 it->staticmessage(this, message, colour);481 for (GametypeMessageListener* listener : ObjectList<GametypeMessageListener>()) 482 listener->staticmessage(this, message, colour); 483 483 } 484 484 485 485 void GametypeInfo::dispatchFadingMessage(const std::string& message) const 486 486 { 487 for ( ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it)488 it->fadingmessage(this, message);487 for (GametypeMessageListener* listener : ObjectList<GametypeMessageListener>()) 488 listener->fadingmessage(this, message); 489 489 } 490 490 }
Note: See TracChangeset
for help on using the changeset viewer.