Changeset 8829 for code/branches/output/src/orxonox/gametypes
- Timestamp:
- Aug 7, 2011, 3:11:16 PM (13 years ago)
- Location:
- code/branches/output/src/orxonox/gametypes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/orxonox/gametypes/Asteroids.cc
r8822 r8829 30 30 31 31 #include "core/CoreIncludes.h" 32 #include " network/Host.h"32 #include "chat/ChatManager.h" 33 33 #include "worldentities/pawns/Pawn.h" 34 34 … … 74 74 75 75 std::string message("The match has started! Reach the first chekpoint within 15 seconds! But be aware, there may be pirates around..."); 76 Host::Broadcast(message);76 ChatManager::message(message); 77 77 78 78 } … … 83 83 84 84 std::string message("The match has ended."); 85 Host::Broadcast(message);85 ChatManager::message(message); 86 86 } 87 87 } -
code/branches/output/src/orxonox/gametypes/Deathmatch.cc
r8822 r8829 30 30 31 31 #include "core/CoreIncludes.h" 32 #include " network/Host.h"32 #include "chat/ChatManager.h" 33 33 #include "infos/PlayerInfo.h" 34 34 #include "worldentities/pawns/Pawn.h" … … 48 48 49 49 std::string message("The match has started!"); 50 Host::Broadcast(message);50 ChatManager::message(message); 51 51 } 52 52 … … 56 56 57 57 std::string message("The match has ended."); 58 Host::Broadcast(message);58 ChatManager::message(message); 59 59 } 60 60 … … 64 64 65 65 const std::string& message = player->getName() + " entered the game"; 66 Host::Broadcast(message);66 ChatManager::message(message); 67 67 } 68 68 … … 74 74 { 75 75 const std::string& message = player->getName() + " left the game"; 76 Host::Broadcast(message);76 ChatManager::message(message); 77 77 } 78 78 … … 87 87 { 88 88 const std::string& message = player->getOldName() + " changed name to " + player->getName(); 89 Host::Broadcast(message);89 ChatManager::message(message); 90 90 } 91 91 … … 108 108 message = victim->getPlayer()->getName() + " died"; 109 109 110 Host::Broadcast(message);110 ChatManager::message(message); 111 111 } 112 112 … … 121 121 { 122 122 const std::string& message = player->getName() + " scores!"; 123 Host::Broadcast(message);123 ChatManager::message(message); 124 124 } 125 125 } -
code/branches/output/src/orxonox/gametypes/Dynamicmatch.cc
r8822 r8829 49 49 #include "core/CoreIncludes.h" 50 50 #include "core/command/Executor.h" 51 #include " network/Host.h"51 #include "chat/ChatManager.h" 52 52 #include "infos/PlayerInfo.h" 53 53 #include "worldentities/pawns/Pawn.h" … … 343 343 Gametype::playerEntered(player); 344 344 const std::string& message = player->getName() + " entered the game"; 345 Host::Broadcast(message);345 ChatManager::message(message); 346 346 } 347 347 … … 358 358 } 359 359 const std::string& message = player->getName() + " left the game"; 360 Host::Broadcast(message);360 ChatManager::message(message); 361 361 //remove player from map 362 362 playerParty_.erase (player); … … 615 615 { 616 616 const std::string& message = player->getOldName() + " changed name to " + player->getName(); 617 Host::Broadcast(message);617 ChatManager::message(message); 618 618 } 619 619 … … 627 627 { 628 628 std::string message("Dynamicmatch started!"); 629 Host::Broadcast(message);629 ChatManager::message(message); 630 630 } 631 631 else if(tutorial) // Announce selectionphase … … 643 643 { 644 644 std::string message("Earn points:\n\n\n\tIf you're red: Chase the blue player!\n\n\tIf you're blue shoot at a red player or hide.\n\n\tIf you're green: You've got the licence to kill red players!"); 645 Host::Broadcast(message);645 ChatManager::message(message); 646 646 callInstructions_.setTimer(10, false, createExecutor(createFunctor(&Dynamicmatch::furtherInstructions, this))); 647 647 } … … 650 650 { 651 651 std::string message("After 3 Minutes the game is over."); 652 Host::Broadcast(message);652 ChatManager::message(message); 653 653 }*/ 654 654 void Dynamicmatch::end() … … 657 657 658 658 std::string message("Time out. Press F2 to see the points you scored."); 659 Host::Broadcast(message);659 ChatManager::message(message); 660 660 } 661 661 SpawnPoint* Dynamicmatch::getBestSpawnPoint(PlayerInfo* player) const -
code/branches/output/src/orxonox/gametypes/LastManStanding.cc
r8822 r8829 30 30 31 31 #include "core/CoreIncludes.h" 32 #include " network/Host.h"32 #include "chat/ChatManager.h" 33 33 #include "infos/PlayerInfo.h" 34 34 #include "worldentities/pawns/Pawn.h" … … 105 105 this->playersAlive--; 106 106 const std::string& message = victim->getPlayer()->getName() + " has lost all lives"; 107 Host::Broadcast(message);107 ChatManager::message(message); 108 108 } 109 109 -
code/branches/output/src/orxonox/gametypes/LastTeamStanding.cc
r8822 r8829 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "network/NetworkPrereqs.h" 33 #include "network/Host.h" 32 #include "chat/ChatManager.h" 34 33 #include "infos/PlayerInfo.h" 35 34 #include "worldentities/pawns/Pawn.h" … … 119 118 this->teamsAlive--; 120 119 const std::string& message = victim->getPlayer()->getName() + " has lost all lives"; 121 Host::Broadcast(message);120 ChatManager::message(message); 122 121 } 123 122 return allow; -
code/branches/output/src/orxonox/gametypes/UnderAttack.cc
r8822 r8829 32 32 #include "core/CoreIncludes.h" 33 33 #include "core/ConfigValueIncludes.h" 34 #include " network/Host.h"34 #include "chat/ChatManager.h" 35 35 #include "worldentities/pawns/Destroyer.h" 36 36 #include "infos/PlayerInfo.h" … … 70 70 this->end(); //end gametype 71 71 std::string message("Ship destroyed! Team 0 has won!"); 72 Host::Broadcast(message);72 ChatManager::message(message); 73 73 this->gameEnded_ = true; 74 74 … … 152 152 this->end(); 153 153 std::string message("Time is up! Team 1 has won!"); 154 Host::Broadcast(message);154 ChatManager::message(message); 155 155 156 156 for (std::map<PlayerInfo*, int>::iterator it = this->teamnumbers_.begin(); it != this->teamnumbers_.end(); ++it) … … 171 171 const std::string& message = multi_cast<std::string>(timesequence_) + " seconds left!"; 172 172 /* 173 Host::Broadcast(message);173 ChatManager::message(message); 174 174 */ 175 175 this->gtinfo_->sendAnnounceMessage(message);
Note: See TracChangeset
for help on using the changeset viewer.