Planeshift
ActionResponseOp Class Reference

This script operation makes an npc do an action, like greet or bow, as part of his response to a player event. More...

#include <dictionary.h>

Public Member Functions

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

Protected Attributes

bool actionMy
 
bool actionNarrate
 
bool actionpublic
 Indicates whether the response action should be shown publicly or in private. More...
 
csString * actWhat
 
csString anim
 
- Protected Attributes inherited from ResponseOperation
csString name
 

Detailed Description

This script operation makes an npc do an action, like greet or bow, as part of his response to a player event.

Definition at line 520 of file dictionary.h.

Constructor & Destructor Documentation

ActionResponseOp::ActionResponseOp ( const char *  actionName,
bool  my,
bool  narrate,
bool  is_public 
)
inline

Definition at line 529 of file dictionary.h.

virtual ActionResponseOp::~ActionResponseOp ( )
inlinevirtual

Definition at line 537 of file dictionary.h.

Member Function Documentation

virtual csString ActionResponseOp::GetResponseScript ( )
virtual

Implements ResponseOperation.

virtual bool ActionResponseOp::IsPublic ( )
inlinevirtual

Reimplemented from ResponseOperation.

Definition at line 544 of file dictionary.h.

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

Implements ResponseOperation.

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

Implements ResponseOperation.

Member Data Documentation

bool ActionResponseOp::actionMy
protected

Definition at line 523 of file dictionary.h.

bool ActionResponseOp::actionNarrate
protected

Definition at line 523 of file dictionary.h.

bool ActionResponseOp::actionpublic
protected

Indicates whether the response action should be shown publicly or in private.

Definition at line 525 of file dictionary.h.

csString* ActionResponseOp::actWhat
protected

Definition at line 527 of file dictionary.h.

csString ActionResponseOp::anim
protected

Definition at line 526 of file dictionary.h.


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