Planeshift
NPCCmdResponseOp Class Reference

This script operation send a perception/command to the npc client. More...

#include <dictionary.h>

Public Member Functions

virtual csString GetResponseScript ()
 
virtual bool Load (iDocumentNode *node)
 
 NPCCmdResponseOp ()
 
virtual bool Run (gemNPC *who, gemActor *target, NpcResponse *owner, csTicks &timeDelay, int &voiceNumber)
 
virtual ~NPCCmdResponseOp ()
 
- Public Member Functions inherited from ResponseOperation
const char * GetName ()
 only used for output in error messages while parsing the script in NpcResponse More...
 
virtual bool IsPublic ()
 
virtual ~ResponseOperation ()
 

Protected Attributes

csString cmd
 
- Protected Attributes inherited from ResponseOperation
csString name
 

Detailed Description

This script operation send a perception/command to the npc client.

This command could picked up by a response in the beavior for a npc. E.g. sending the command "test_cmd" could be received with the: <react event="npccmd:test_cmd" ... />

Definition at line 556 of file dictionary.h.

Constructor & Destructor Documentation

NPCCmdResponseOp::NPCCmdResponseOp ( )
inline

Definition at line 561 of file dictionary.h.

virtual NPCCmdResponseOp::~NPCCmdResponseOp ( )
inlinevirtual

Definition at line 565 of file dictionary.h.

Member Function Documentation

virtual csString NPCCmdResponseOp::GetResponseScript ( )
virtual

Implements ResponseOperation.

virtual bool NPCCmdResponseOp::Load ( iDocumentNode *  node)
virtual

Implements ResponseOperation.

virtual bool NPCCmdResponseOp::Run ( gemNPC who,
gemActor target,
NpcResponse owner,
csTicks &  timeDelay,
int voiceNumber 
)
virtual

Implements ResponseOperation.

Member Data Documentation

csString NPCCmdResponseOp::cmd
protected

Definition at line 559 of file dictionary.h.


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