Planeshift
|
This class handles mode messages from the server, specifying actions for a clicked location. More...
#include <actionhandler.h>
Public Member Functions | |
ActionHandler (MsgHandler *mh, iObjectRegistry *object_reg) | |
void | DeleteAction (const char *id) |
Command server to remove an action location. | |
void | HandleMessage (MsgEntry *me) |
void | Query (const char *trigger, const char *sector, const char *mesh, int32_t poly, csVector3 pos) |
Creates and XML Query to send to the server. | |
void | ReloadCache () |
Resend the client actions back to the client. | |
void | Save (const char *id, const char *masterid, const char *name, const char *sector, const char *mesh, const char *poly, const char *posx, const char *posy, const char *posz, const char *pos_instance, const char *radius, const char *triggertype, const char *responsetype, const char *response, const char *active) |
Command server to save an action location to the database. | |
virtual | ~ActionHandler () |
Protected Attributes | |
csRef< MsgHandler > | msgHandler |
iObjectRegistry * | objectReg |
This class handles mode messages from the server, specifying actions for a clicked location.
Definition at line 48 of file actionhandler.h.
ActionHandler::ActionHandler | ( | MsgHandler * | mh, |
iObjectRegistry * | object_reg | ||
) |
virtual ActionHandler::~ActionHandler | ( | ) | [virtual] |
void ActionHandler::DeleteAction | ( | const char * | id | ) |
Command server to remove an action location.
Create XML query
<location> <id></id> <location>
void ActionHandler::HandleMessage | ( | MsgEntry * | me | ) | [virtual] |
Implements psClientNetSubscriber.
void ActionHandler::Query | ( | const char * | trigger, |
const char * | sector, | ||
const char * | mesh, | ||
int32_t | poly, | ||
csVector3 | pos | ||
) |
Creates and XML Query to send to the server.
Create XML query
<location> <sector></sector> <mesh></mesh> <polygon></polygon> <position><x/><y/><z/></position> <triggertype></triggertype> <location>
void ActionHandler::ReloadCache | ( | ) |
Resend the client actions back to the client.
void ActionHandler::Save | ( | const char * | id, |
const char * | masterid, | ||
const char * | name, | ||
const char * | sector, | ||
const char * | mesh, | ||
const char * | poly, | ||
const char * | posx, | ||
const char * | posy, | ||
const char * | posz, | ||
const char * | pos_instance, | ||
const char * | radius, | ||
const char * | triggertype, | ||
const char * | responsetype, | ||
const char * | response, | ||
const char * | active | ||
) |
Command server to save an action location to the database.
Create XML query
<location> <id></id> <masterid></masterid> <name></name> <sector></sector> <mesh></mesh> <polygon></polygon> <position><x/><y/><z/></position> <radius></radius> <triggertype></triggertype> <responsetype></responsetype> <response></response> <active></active> <location>
csRef<MsgHandler> ActionHandler::msgHandler [protected] |
Definition at line 113 of file actionhandler.h.
iObjectRegistry* ActionHandler::objectReg [protected] |
Definition at line 112 of file actionhandler.h.