Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 7, 2011, 3:11:16 PM (13 years ago)
Author:
landauf
Message:

enhanced chat system. chat related code is now separated into network-side code (located in Host, Client, Server) and client-side code (located in ChatManager).
note that there are now two chat related listeners: NetworkChatListener, which is used to send chat from the network to ChatManager, and ChatListener, which is used to send online and offline chat from ChatManager to the actual chat interfaces (ChatOverlay, ChatInputHandler, …).
the "chat" console command now supports a second argument which is the clientID of the receiver. this allows private messages (or gameplay messages directed to only one specific player).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/orxonox/gametypes/UnderAttack.cc

    r8822 r8829  
    3232#include "core/CoreIncludes.h"
    3333#include "core/ConfigValueIncludes.h"
    34 #include "network/Host.h"
     34#include "chat/ChatManager.h"
    3535#include "worldentities/pawns/Destroyer.h"
    3636#include "infos/PlayerInfo.h"
     
    7070        this->end(); //end gametype
    7171        std::string message("Ship destroyed! Team 0 has won!");
    72         Host::Broadcast(message);
     72        ChatManager::message(message);
    7373        this->gameEnded_ = true;
    7474
     
    152152                this->end();
    153153                std::string message("Time is up! Team 1 has won!");
    154                 Host::Broadcast(message);
     154                ChatManager::message(message);
    155155
    156156                for (std::map<PlayerInfo*, int>::iterator it = this->teamnumbers_.begin(); it != this->teamnumbers_.end(); ++it)
     
    171171                const std::string& message = multi_cast<std::string>(timesequence_) + " seconds left!";
    172172/*
    173                 Host::Broadcast(message);
     173                ChatManager::message(message);
    174174*/
    175175                this->gtinfo_->sendAnnounceMessage(message);
Note: See TracChangeset for help on using the changeset viewer.