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 | |
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. | |
void | SendNotice (psChatMessage &msg) |
void | SendServerChannelMessage (psChatMessage &msg, uint32_t channelID) |
virtual | ~ChatManager () |
Protected Member Functions | |
bool | FloodControl (csString &newMessage, Client *client) |
If this returns true, all went well. If it returns false, the client was muted. | |
void | SendAlliance (Client *client, psChatMessage &msg) |
gets the message from a client to dispatch to the alliance chat | |
void | SendAudioFile (Client *client, const char *voiceFile) |
Sends the actual file to the client if needed. | |
void | SendAudioFileHash (Client *client, const char *voiceFile, csTicks delay) |
Starts the process of sending the specified file to the client. | |
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 |
Definition at line 70 of file chatmanager.h.
ChatManager::ChatManager | ( | ) |
virtual ChatManager::~ChatManager | ( | ) | [virtual] |
csString ChatManager::channelsToString | ( | ) |
NpcResponse* ChatManager::CheckNPCEvent | ( | Client * | client, |
csString & | trigger, | ||
gemNPC *& | target | ||
) |
bool ChatManager::FloodControl | ( | csString & | newMessage, |
Client * | client | ||
) | [protected] |
If this returns true, all went well. If it returns false, the client was muted.
void ChatManager::RemoveAllChannels | ( | Client * | client | ) |
void ChatManager::SendAlliance | ( | Client * | client, |
psChatMessage & | msg | ||
) | [protected] |
gets the message from a client to dispatch to the alliance chat
void ChatManager::SendAlliance | ( | const csString & | sender, |
EID | senderEID, | ||
psGuildAlliance * | alliance, | ||
psChatMessage & | msg | ||
) |
actually sends the message to all connected members of the alliance
void ChatManager::SendAudioFile | ( | Client * | client, |
const char * | voiceFile | ||
) | [protected] |
Sends the actual file to the client if needed.
void ChatManager::SendAudioFileHash | ( | Client * | client, |
const char * | voiceFile, | ||
csTicks | delay | ||
) | [protected] |
Starts the process of sending the specified file to the client.
void ChatManager::SendGroup | ( | Client * | client, |
psChatMessage & | msg | ||
) | [protected] |
void ChatManager::SendGuild | ( | Client * | client, |
psChatMessage & | msg | ||
) | [protected] |
void ChatManager::SendGuild | ( | const csString & | sender, |
EID | senderEID, | ||
psGuildInfo * | guild, | ||
psChatMessage & | msg | ||
) |
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 | ) |
void ChatManager::SendSay | ( | uint32_t | clientNum, |
gemActor * | actor, | ||
psChatMessage & | msg, | ||
const char * | who | ||
) | [protected] |
void ChatManager::SendServerChannelMessage | ( | psChatMessage & | msg, |
uint32_t | channelID | ||
) |
void ChatManager::SendShout | ( | Client * | client, |
psChatMessage & | msg | ||
) | [protected] |
void ChatManager::SendTell | ( | psChatMessage & | msg, |
const char * | who, | ||
Client * | client, | ||
Client * | target | ||
) | [protected] |
csPDelArray<CachedData> ChatManager::audioFileCache [protected] |
Definition at line 99 of file chatmanager.h.
csHash<uint32_t, csString> ChatManager::channelIDs [protected] |
Definition at line 124 of file chatmanager.h.
csHash<csString, uint32_t> ChatManager::channelNames [protected] |
Definition at line 126 of file chatmanager.h.
csHash<uint32_t, uint32_t> ChatManager::channelSubscribers [protected] |
Definition at line 121 of file chatmanager.h.
csHash<uint32_t, uint32_t> ChatManager::channelSubscriptions [protected] |
Definition at line 120 of file chatmanager.h.
uint32_t ChatManager::nextChannelID [protected] |
Definition at line 128 of file chatmanager.h.