Planeshift
MessageManagerBase Class Reference

Base server-side class for subscriptions. More...

#include <msgmanager.h>

Public Member Functions

csArray< csString > DecodeCommandArea (Client *client, csString target)
 Decodes an area: expression. More...
 
gemObjectFindObjectByString (const csString &str, gemActor *me) const
 Find the object we are referring to in str. More...
 
ClientFindPlayerClient (const char *name)
 Finds Client* of character with given name. More...
 
virtual bool Verify (MsgEntry *pMsg, unsigned int flags, Client *&client)
 
- Public Member Functions inherited from iNetSubscriber
virtual void HandleMessage (MsgEntry *msg, Client *client)=0
 Interprets a received message and executes the command. More...
 

Detailed Description

Base server-side class for subscriptions.

Contains non-templated functions for classes that need to be able to subscribe to messages.

Definition at line 67 of file msgmanager.h.

Member Function Documentation

csArray<csString> MessageManagerBase::DecodeCommandArea ( Client client,
csString  target 
)

Decodes an area: expression.

Syntax can be: area:[players|actors|items|npcs|entities]:[range]:[filter] Example: area:players:10:Erel* (this will find all players in 10 meters area, which are named Erel*) Syntax can be map:mapname[:name]

Parameters
clientThe client of the caller
targetThe area: expression
gemObject* MessageManagerBase::FindObjectByString ( const csString &  str,
gemActor me 
) const

Find the object we are referring to in str.

This str can have different formats, depending on the object we are trying to get.

Parameters
strthe field containing the reference to the object
methe client's actor who is sending the command
Client* MessageManagerBase::FindPlayerClient ( const char *  name)

Finds Client* of character with given name.

virtual bool MessageManagerBase::Verify ( MsgEntry pMsg,
unsigned int  flags,
Client *&  client 
)
virtual

Implements iNetSubscriber.


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