Planeshift
|
#include <chatmanager.h>
Public Member Functions | |
csString | channelsToString () |
ChatManager () | |
NpcResponse * | CheckNPCEvent (Client *client, csString &trigger, gemNPC *&target) |
void | HandleCacheMessage (MsgEntry *me, Client *client) |
void | HandleChannelJoinMessage (MsgEntry *me, Client *client) |
void | HandleChannelLeaveMessage (MsgEntry *me, Client *client) |
void | HandleChatMessage (MsgEntry *me, Client *client) |
void | RemoveAllChannels (Client *client) |
void | SendAlliance (const csString &sender, EID senderEID, psGuildAlliance *alliance, psChatMessage &msg) |
actually sends the message to all connected members of the alliance More... | |
void | SendGuild (const csString &sender, EID senderEID, psGuildInfo *guild, psChatMessage &msg) |
void | SendMultipleAudioFileHashes (Client *client, const char *voiceFile) |
Starts the process of sending the specified list of files to the client. More... | |
void | SendNotice (psChatMessage &msg) |
void | SendServerChannelMessage (psChatMessage &msg, uint32_t channelID) |
virtual | ~ChatManager () |
![]() | |
void | HandleMessage (MsgEntry *msg, Client *client) |
Transfers the message to the manager specific function. More... | |
void | Subscribe (FunctionPointer fpt, msgtype type, uint32_t flags=0x01) |
Subscribes this manager to a specific message type with a custom callback. More... | |
bool | Unsubscribe (msgtype type) |
Unsubscribes this manager from a specific message type. More... | |
bool | Unsubscribe (FunctionPointer handler, msgtype type) |
Unsubscribes a specific handler from a specific message type. More... | |
bool | UnsubscribeAll () |
Unsubscribes this manager from all message types. More... | |
virtual | ~MessageManager () |
Unsubscribes all messages then destroys this object. More... | |
![]() | |
csArray< csString > | DecodeCommandArea (Client *client, csString target) |
Decodes an area: expression. More... | |
gemObject * | FindObjectByString (const csString &str, gemActor *me) const |
Find the object we are referring to in str. More... | |
Client * | FindPlayerClient (const char *name) |
Finds Client* of character with given name. More... | |
virtual bool | Verify (MsgEntry *pMsg, unsigned int flags, Client *&client) |
Protected Member Functions | |
bool | FloodControl (csString &newMessage, Client *client) |
If this returns true, all went well. If it returns false, the client was muted. More... | |
void | SendAlliance (Client *client, psChatMessage &msg) |
gets the message from a client to dispatch to the alliance chat More... | |
void | SendAudioFile (Client *client, const char *voiceFile) |
Sends the actual file to the client if needed. More... | |
void | SendAudioFileHash (Client *client, const char *voiceFile, csTicks delay) |
Starts the process of sending the specified file to the client. More... | |
void | SendGroup (Client *client, psChatMessage &msg) |
void | SendGuild (Client *client, psChatMessage &msg) |
void | SendSay (uint32_t clientNum, gemActor *actor, psChatMessage &msg, const char *who) |
void | SendShout (Client *client, psChatMessage &msg) |
void | SendTell (psChatMessage &msg, const char *who, Client *client, Client *target) |
Protected Attributes | |
csPDelArray< CachedData > | audioFileCache |
csHash< uint32_t, csString > | channelIDs |
csHash< csString, uint32_t > | channelNames |
csHash< uint32_t, uint32_t > | channelSubscribers |
csHash< uint32_t, uint32_t > | channelSubscriptions |
uint32_t | nextChannelID |
Additional Inherited Members | |
![]() | |
typedef void(ChatManager::* | FunctionPointer) (MsgEntry *, Client *) |
Definition at line 70 of file chatmanager.h.
ChatManager::ChatManager | ( | ) |
|
virtual |
csString ChatManager::channelsToString | ( | ) |
NpcResponse* ChatManager::CheckNPCEvent | ( | Client * | client, |
csString & | trigger, | ||
gemNPC *& | target | ||
) |
|
protected |
If this returns true, all went well. If it returns false, the client was muted.
void ChatManager::RemoveAllChannels | ( | Client * | client | ) |
void ChatManager::SendAlliance | ( | const csString & | sender, |
EID | senderEID, | ||
psGuildAlliance * | alliance, | ||
psChatMessage & | msg | ||
) |
actually sends the message to all connected members of the alliance
|
protected |
gets the message from a client to dispatch to the alliance chat
|
protected |
Sends the actual file to the client if needed.
|
protected |
Starts the process of sending the specified file to the client.
|
protected |
void ChatManager::SendGuild | ( | const csString & | sender, |
EID | senderEID, | ||
psGuildInfo * | guild, | ||
psChatMessage & | msg | ||
) |
|
protected |
void ChatManager::SendMultipleAudioFileHashes | ( | Client * | client, |
const char * | voiceFile | ||
) |
Starts the process of sending the specified list of files to the client.
void ChatManager::SendNotice | ( | psChatMessage & | msg | ) |
|
protected |
void ChatManager::SendServerChannelMessage | ( | psChatMessage & | msg, |
uint32_t | channelID | ||
) |
|
protected |
|
protected |
|
protected |
Definition at line 101 of file chatmanager.h.
|
protected |
Definition at line 129 of file chatmanager.h.
|
protected |
Definition at line 131 of file chatmanager.h.
|
protected |
Definition at line 126 of file chatmanager.h.
|
protected |
Definition at line 123 of file chatmanager.h.
|
protected |
Definition at line 133 of file chatmanager.h.