Changeset 6417 for code/trunk/src/orxonox/gametypes
- Timestamp:
- Dec 25, 2009, 10:23:58 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/gametypes/Asteroids.cc
r5929 r6417 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/trunk/src/orxonox/gametypes/Deathmatch.cc
r5781 r6417 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/trunk/src/orxonox/gametypes/Gametype.cc
r5929 r6417 51 51 { 52 52 RegisterObject(Gametype); 53 53 54 54 this->gtinfo_ = new GametypeInfo(creator); 55 55 … … 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); … … 79 79 else 80 80 this->scoreboard_ = 0; 81 81 82 82 /* HACK HACK HACK */ 83 83 this->hackAddBots_ = createConsoleCommand( createFunctor(&Gametype::addBots, this), "hackAddBots"); … … 87 87 /* HACK HACK HACK */ 88 88 } 89 89 90 90 Gametype::~Gametype() 91 91 { -
code/trunk/src/orxonox/gametypes/Gametype.h
r5929 r6417 184 184 // Config Values 185 185 std::string scoreboardTemplate_; 186 186 187 187 /* HACK HACK HACK */ 188 188 ConsoleCommand* hackAddBots_; -
code/trunk/src/orxonox/gametypes/TeamDeathmatch.cc
r5929 r6417 61 61 static std::vector<ColourValue> defaultcolours(colours, colours + sizeof(colours) / sizeof(ColourValue)); 62 62 63 SetConfigValue Vector(teamcolours_, defaultcolours);63 SetConfigValue(teamcolours_, defaultcolours); 64 64 } 65 65 -
code/trunk/src/orxonox/gametypes/UnderAttack.cc
r5929 r6417 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.