|
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. More... | |
| 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. More... | |
| void | ReloadCache () |
| Resend the client actions back to the client. More... | |
| 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. More... | |
| virtual | ~ActionHandler () |
Public Member Functions inherited from psClientNetSubscriber | |
| virtual void | HandleMessage (MsgEntry *msg, Client *) |
| Interprets a received message and executes the command. More... | |
| virtual bool | Verify (MsgEntry *, unsigned int, Client *&) |
| virtual | ~psClientNetSubscriber () |
Protected Attributes | |
| csRef< MsgHandler > | msgHandler |
| iObjectRegistry * | objectReg |
This class handles mode messages from the server, specifying actions for a clicked location.
Handles client side the addition and removals of actions locations in conjuction with pawsgmaction.cpp
Definition at line 50 of file actionhandler.h.
| ActionHandler::ActionHandler | ( | MsgHandler * | mh, |
| iObjectRegistry * | object_reg | ||
| ) |
|
virtual |
| void ActionHandler::DeleteAction | ( | const char * | id | ) |
Command server to remove an action location.
Create XML query
<location>
<id></id>
<location>
|
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>
|
protected |
Definition at line 115 of file actionhandler.h.
|
protected |
Definition at line 114 of file actionhandler.h.