- Timestamp:
- Aug 7, 2011, 3:11:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.