Changeset 8858 for code/trunk/src/orxonox/gametypes/Dynamicmatch.cc
- Timestamp:
- Aug 23, 2011, 12:45:53 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 1 build 2 2 codeblocks 3 vs 3 4 dependencies
-
- Property svn:mergeinfo changed
/code/branches/output (added) merged: 8739-8740,8765,8771-8772,8774-8780,8787-8789,8794-8799,8801,8803-8812,8814,8816-8817,8820,8822,8825-8837,8840,8844,8846,8848-8850,8853-8854
- Property svn:ignore
-
code/trunk/src/orxonox/gametypes/Dynamicmatch.cc
r8729 r8858 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" … … 342 342 numberOf[chaser]++; 343 343 Gametype::playerEntered(player); 344 const std::string& message6 = player->getName() + " entered the game"; 345 COUT(0) << message6 << std::endl; 346 Host::Broadcast(message6); 344 const std::string& message = player->getName() + " entered the game"; 345 ChatManager::message(message); 347 346 } 348 347 … … 359 358 } 360 359 const std::string& message = player->getName() + " left the game"; 361 COUT(0) << message << std::endl; 362 Host::Broadcast(message); 360 ChatManager::message(message); 363 361 //remove player from map 364 362 playerParty_.erase (player); … … 617 615 { 618 616 const std::string& message = player->getOldName() + " changed name to " + player->getName(); 619 COUT(0) << message << std::endl; 620 Host::Broadcast(message); 617 ChatManager::message(message); 621 618 } 622 619 … … 630 627 { 631 628 std::string message("Dynamicmatch started!"); 632 COUT(0) << message << std::endl; 633 Host::Broadcast(message); 629 ChatManager::message(message); 634 630 } 635 631 else if(tutorial) // Announce selectionphase … … 647 643 { 648 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!"); 649 COUT(0) << message << std::endl; 650 Host::Broadcast(message); 645 ChatManager::message(message); 651 646 callInstructions_.setTimer(10, false, createExecutor(createFunctor(&Dynamicmatch::furtherInstructions, this))); 652 647 } … … 655 650 { 656 651 std::string message("After 3 Minutes the game is over."); 657 COUT(0) << message << std::endl; 658 Host::Broadcast(message); 652 ChatManager::message(message); 659 653 }*/ 660 654 void Dynamicmatch::end() … … 663 657 664 658 std::string message("Time out. Press F2 to see the points you scored."); 665 COUT(0) << message << std::endl; 666 Host::Broadcast(message); 659 ChatManager::message(message); 667 660 } 668 661 SpawnPoint* Dynamicmatch::getBestSpawnPoint(PlayerInfo* player) const
Note: See TracChangeset
for help on using the changeset viewer.