TmwServ::ChatHandler Class Reference

#include <chathandler.h>

Inheritance diagram for TmwServ::ChatHandler:

MessageHandler Net::ChatHandler

List of all members.


Detailed Description

Definition at line 30 of file chathandler.h.


Public Member Functions

 ChatHandler ()
void handleMessage (MessageIn &msg)
 Handle the given message appropriately.
void talk (const std::string &text)
void me (const std::string &text)
void privateMessage (const std::string &recipient, const std::string &text)
void channelList ()
void enterChannel (const std::string &channel, const std::string &password)
void quitChannel (int channelId)
void sendToChannel (int channelId, const std::string &text)
void userList (const std::string &channel)
void setChannelTopic (int channelId, const std::string &text)
void setUserMode (int channelId, const std::string &name, int mode)
void kickUser (int channelId, const std::string &name)
void who ()

Private Member Functions

void handleGameChatMessage (MessageIn &msg)
 Handle chat messages sent from the game server.
void handleEnterChannelResponse (MessageIn &msg)
 Handle channel entry responses.
void handleListChannelsResponse (MessageIn &msg)
 Handle list channels responses.
void handlePrivateMessage (MessageIn &msg)
 Handle private messages.
void handleAnnouncement (MessageIn &msg)
 Handle announcements.
void handleChatMessage (MessageIn &msg)
 Handle chat messages.
void handleQuitChannelResponse (MessageIn &msg)
 Handle quit channel responses.
void handleListChannelUsersResponse (MessageIn &msg)
 Handle list channel users responses.
void handleChannelEvent (MessageIn &msg)
 Handle channel events.
void handleWhoResponse (MessageIn &msg)
 Handle who responses.

Constructor & Destructor Documentation

TmwServ::ChatHandler::ChatHandler (  ) 

Definition at line 57 of file chathandler.cpp.


Member Function Documentation

void TmwServ::ChatHandler::handleMessage ( MessageIn msg  )  [virtual]

Handle the given message appropriately.

Implements MessageHandler.

Definition at line 76 of file chathandler.cpp.

void TmwServ::ChatHandler::talk ( const std::string &  text  )  [virtual]

Implements Net::ChatHandler.

Definition at line 320 of file chathandler.cpp.

void TmwServ::ChatHandler::me ( const std::string &  text  )  [virtual]

Implements Net::ChatHandler.

Definition at line 327 of file chathandler.cpp.

void TmwServ::ChatHandler::privateMessage ( const std::string &  recipient,
const std::string &  text 
) [virtual]

Implements Net::ChatHandler.

Definition at line 332 of file chathandler.cpp.

void TmwServ::ChatHandler::channelList (  )  [virtual]

Implements Net::ChatHandler.

Definition at line 341 of file chathandler.cpp.

void TmwServ::ChatHandler::enterChannel ( const std::string &  channel,
const std::string &  password 
) [virtual]

Implements Net::ChatHandler.

Definition at line 347 of file chathandler.cpp.

void TmwServ::ChatHandler::quitChannel ( int  channelId  )  [virtual]

Implements Net::ChatHandler.

Definition at line 356 of file chathandler.cpp.

void TmwServ::ChatHandler::sendToChannel ( int  channelId,
const std::string &  text 
) [virtual]

Implements Net::ChatHandler.

Definition at line 363 of file chathandler.cpp.

void TmwServ::ChatHandler::userList ( const std::string &  channel  )  [virtual]

Implements Net::ChatHandler.

Definition at line 371 of file chathandler.cpp.

void TmwServ::ChatHandler::setChannelTopic ( int  channelId,
const std::string &  text 
) [virtual]

Implements Net::ChatHandler.

Definition at line 378 of file chathandler.cpp.

void TmwServ::ChatHandler::setUserMode ( int  channelId,
const std::string &  name,
int  mode 
) [virtual]

Implements Net::ChatHandler.

Definition at line 386 of file chathandler.cpp.

void TmwServ::ChatHandler::kickUser ( int  channelId,
const std::string &  name 
) [virtual]

Implements Net::ChatHandler.

Definition at line 395 of file chathandler.cpp.

void TmwServ::ChatHandler::who (  )  [virtual]

Implements Net::ChatHandler.

Definition at line 403 of file chathandler.cpp.

void TmwServ::ChatHandler::handleGameChatMessage ( MessageIn msg  )  [private]

Handle chat messages sent from the game server.

Definition at line 122 of file chathandler.cpp.

void TmwServ::ChatHandler::handleEnterChannelResponse ( MessageIn msg  )  [private]

Handle channel entry responses.

Definition at line 147 of file chathandler.cpp.

void TmwServ::ChatHandler::handleListChannelsResponse ( MessageIn msg  )  [private]

Handle list channels responses.

Definition at line 182 of file chathandler.cpp.

void TmwServ::ChatHandler::handlePrivateMessage ( MessageIn msg  )  [private]

Handle private messages.

Definition at line 199 of file chathandler.cpp.

void TmwServ::ChatHandler::handleAnnouncement ( MessageIn msg  )  [private]

Handle announcements.

Definition at line 207 of file chathandler.cpp.

void TmwServ::ChatHandler::handleChatMessage ( MessageIn msg  )  [private]

Handle chat messages.

Definition at line 213 of file chathandler.cpp.

void TmwServ::ChatHandler::handleQuitChannelResponse ( MessageIn msg  )  [private]

Handle quit channel responses.

Definition at line 223 of file chathandler.cpp.

void TmwServ::ChatHandler::handleListChannelUsersResponse ( MessageIn msg  )  [private]

Handle list channel users responses.

Definition at line 233 of file chathandler.cpp.

void TmwServ::ChatHandler::handleChannelEvent ( MessageIn msg  )  [private]

Handle channel events.

Definition at line 256 of file chathandler.cpp.

void TmwServ::ChatHandler::handleWhoResponse ( MessageIn msg  )  [private]

Handle who responses.

Definition at line 305 of file chathandler.cpp.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5