Planeshift
iCmdSubscriber Struct Referenceabstract

This interface must be implemented by objects that want to receive command line strings messages. More...

#include <subscriber.h>

Public Member Functions

virtual const char * HandleCommand (const char *cmd)=0
 Interprets a received message and executes the command. More...
 

Detailed Description

This interface must be implemented by objects that want to receive command line strings messages.

Objects must call a provider's Subscribe function to sign up for the "/commands" they want.

Definition at line 52 of file subscriber.h.

Member Function Documentation

virtual const char* iCmdSubscriber::HandleCommand ( const char *  cmd)
pure virtual

Interprets a received message and executes the command.

char * returned can be an error message to display.

Implemented in pawsChatWindow, psMainWidget, psCamera, pawsQuestListWindow, pawsPetitionGMWindow, pawsPetitionWindow, pawsGmGUIWindow, psGroupCommands, pawsLootWindow, psUserCommands, psCmdBase, GUIHandler, psAdminCommands, psUtilityCommands, psGuildCommands, and pawsQuestRewardWindow.


The documentation for this struct was generated from the following file: