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/chat/ChatHistory.h

    r8828 r8829  
    3737
    3838#ifndef CHATTEST
    39 #include <OrxonoxPrereqs.h>
    40 #include <PlayerManager.h>
    41 #include <infos/PlayerInfo.h>
    42 #include <core/BaseObject.h>
    43 #include <network/ChatListener.h>
    44 #include <core/PathConfig.h>
    45 #include <util/Singleton.h>
     39#include "OrxonoxPrereqs.h"
     40
     41#include "util/Singleton.h"
     42#include "core/BaseObject.h"
     43#include "core/PathConfig.h"
     44#include "chat/ChatListener.h"
     45#include "infos/PlayerInfo.h"
     46#include "PlayerManager.h"
    4647#endif
    4748
     
    8283       * \param senderID Identification number of the sender
    8384       */
    84       virtual void incomingChat(const std::string& message,
    85         unsigned int senderID);
     85      virtual void incomingChat(const std::string& message, const std::string& name);
    8686
    8787      /** Synchronize logfile onto the hard drive
Note: See TracChangeset for help on using the changeset viewer.