Planeshift
Public Member Functions | Protected Attributes

ActionHandler Class Reference

This class handles mode messages from the server, specifying actions for a clicked location. More...

#include <actionhandler.h>

List of all members.

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< MsgHandlermsgHandler
iObjectRegistry * objectReg

Detailed Description

This class handles mode messages from the server, specifying actions for a clicked location.

Definition at line 48 of file actionhandler.h.


Constructor & Destructor Documentation

ActionHandler::ActionHandler ( MsgHandler mh,
iObjectRegistry *  object_reg 
)
virtual ActionHandler::~ActionHandler ( ) [virtual]

Member Function Documentation

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>          
 

Member Data Documentation

Definition at line 113 of file actionhandler.h.

iObjectRegistry* ActionHandler::objectReg [protected]

Definition at line 112 of file actionhandler.h.


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