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/ChatInputHandler.h

    r8828 r8829  
    3030#define _ChatInputHandler_H__
    3131
    32 #include <OrxonoxPrereqs.h>
     32#include "OrxonoxPrereqs.h"
    3333
    3434#include <string>
     
    3737
    3838#include "util/Singleton.h"
    39 #include "network/ChatListener.h"
     39#include "chat/ChatListener.h"
    4040
    4141namespace orxonox // tolua_export
     
    112112       * history window of the full chat window)
    113113       */
    114       void incomingChat( const std::string& message,
    115         unsigned int senderID );
     114      void incomingChat(const std::string& message, const std::string& name);
    116115
    117116      /** \param full true means show full chat window with history,
Note: See TracChangeset for help on using the changeset viewer.