Planeshift
Public Member Functions | Protected Attributes

NPCCmdResponseOp Class Reference

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

#include <dictionary.h>

List of all members.

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 ()

Protected Attributes

csString cmd

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 ( ) [inline, virtual]

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: