Planeshift
|
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... | |
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) |
![]() | |
virtual void | HandleMessage (MsgEntry *msg, Client *client)=0 |
Interprets a received message and executes the command. More... | |
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.
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]
client | The client of the caller |
target | The area: expression |
Find the object we are referring to in str.
This str can have different formats, depending on the object we are trying to get.
str | the field containing the reference to the object |
me | the client's actor who is sending the command |
Client* MessageManagerBase::FindPlayerClient | ( | const char * | name | ) |
Finds Client* of character with given name.
|
virtual |
Implements iNetSubscriber.