- Timestamp:
- Mar 23, 2009, 11:26:46 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/miniprojects/src/orxonox/objects/gametypes/Deathmatch.cc
r2820 r2824 49 49 Gametype::start(); 50 50 51 COUT(0) << "game started" << std::endl; 51 std::string message = "The match has started!"; 52 COUT(0) << message << std::endl; 53 Host::Broadcast(message); 52 54 } 53 55 … … 56 58 Gametype::end(); 57 59 58 COUT(0) << "game ended" << std::endl; 60 std::string message = "The match has ended."; 61 COUT(0) << message << std::endl; 62 Host::Broadcast(message); 59 63 } 60 64 … … 117 121 Gametype::pawnKilled(victim, killer); 118 122 } 123 124 void Deathmatch::playerScored(PlayerInfo* player) 125 { 126 Gametype::playerScored(player); 127 128 if (player) 129 { 130 std::string message = player->getName() + " scores!"; 131 COUT(0) << message << std::endl; 132 Host::Broadcast(message); 133 } 134 } 119 135 }
Note: See TracChangeset
for help on using the changeset viewer.