Changeset 6394 for code/branches/presentation2/src/orxonox/gametypes
- Timestamp:
- Dec 22, 2009, 2:07:44 PM (14 years ago)
- Location:
- code/branches/presentation2/src/orxonox/gametypes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/gametypes/Asteroids.cc
r5929 r6394 72 72 Gametype::start(); 73 73 74 std::string message = "The match has started! Reach the first chekpoint within 15 seconds! But be aware, there may be pirates around...";74 std::string message("The match has started! Reach the first chekpoint within 15 seconds! But be aware, there may be pirates around..."); 75 75 COUT(0) << message << std::endl; 76 76 Host::Broadcast(message); … … 81 81 Gametype::end(); 82 82 83 std::string message = "The match has ended.";83 std::string message("The match has ended."); 84 84 COUT(0) << message << std::endl; 85 85 Host::Broadcast(message); -
code/branches/presentation2/src/orxonox/gametypes/Deathmatch.cc
r5781 r6394 47 47 Gametype::start(); 48 48 49 std::string message = "The match has started!";49 std::string message("The match has started!"); 50 50 COUT(0) << message << std::endl; 51 51 Host::Broadcast(message); … … 56 56 Gametype::end(); 57 57 58 std::string message = "The match has ended.";58 std::string message("The match has ended."); 59 59 COUT(0) << message << std::endl; 60 60 Host::Broadcast(message); … … 65 65 Gametype::playerEntered(player); 66 66 67 std::stringmessage = player->getName() + " entered the game";67 const std::string& message = player->getName() + " entered the game"; 68 68 COUT(0) << message << std::endl; 69 69 Host::Broadcast(message); … … 76 76 if (valid_player) 77 77 { 78 std::stringmessage = player->getName() + " left the game";78 const std::string& message = player->getName() + " left the game"; 79 79 COUT(0) << message << std::endl; 80 80 Host::Broadcast(message); … … 90 90 if (valid_player) 91 91 { 92 std::stringmessage = player->getOldName() + " changed name to " + player->getName();92 const std::string& message = player->getOldName() + " changed name to " + player->getName(); 93 93 COUT(0) << message << std::endl; 94 94 Host::Broadcast(message); … … 126 126 if (player) 127 127 { 128 std::stringmessage = player->getName() + " scores!";128 const std::string& message = player->getName() + " scores!"; 129 129 COUT(0) << message << std::endl; 130 130 Host::Broadcast(message); -
code/branches/presentation2/src/orxonox/gametypes/Gametype.cc
r6387 r6394 71 71 72 72 // load the corresponding score board 73 if (GameMode::showsGraphics() && this->scoreboardTemplate_ != "")73 if (GameMode::showsGraphics() && !this->scoreboardTemplate_.empty()) 74 74 { 75 75 this->scoreboard_ = new OverlayGroup(this); -
code/branches/presentation2/src/orxonox/gametypes/UnderAttack.cc
r5929 r6394 69 69 { 70 70 this->end(); //end gametype 71 std::string message = "Ship destroyed! Team 0 has won!";71 std::string message("Ship destroyed! Team 0 has won!"); 72 72 COUT(0) << message << std::endl; 73 73 Host::Broadcast(message); … … 152 152 this->gameEnded_ = true; 153 153 this->end(); 154 std::string message = "Time is up! Team 1 has won!";154 std::string message("Time is up! Team 1 has won!"); 155 155 COUT(0) << message << std::endl; 156 156 Host::Broadcast(message); … … 171 171 if ( gameTime_ <= timesequence_ && gameTime_ > 0) 172 172 { 173 std::stringmessage = multi_cast<std::string>(timesequence_) + " seconds left!";173 const std::string& message = multi_cast<std::string>(timesequence_) + " seconds left!"; 174 174 /* 175 175 COUT(0) << message << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.