Planeshift
SayResponseOp Class Reference

This script operation chooses randomly between the responses specified in the response columns and causes the server to say one of them to the player. More...

#include <dictionary.h>

Public Member Functions

virtual csString GetResponseScript ()
 
virtual bool IsPublic ()
 
virtual bool Load (iDocumentNode *node)
 
virtual bool Run (gemNPC *who, gemActor *target, NpcResponse *owner, csTicks &timeDelay, int &voiceNumber)
 
 SayResponseOp (const char *name, bool is_public)
 
virtual ~SayResponseOp ()
 
- 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 ()
 

Public Attributes

bool saypublic
 Indicates whether the response dialog should be said publicly or /tell in private. More...
 
csString * sayWhat
 Optional specific string to say, used by quest_scripts. More...
 

Additional Inherited Members

- Protected Attributes inherited from ResponseOperation
csString name
 

Detailed Description

This script operation chooses randomly between the responses specified in the response columns and causes the server to say one of them to the player.

Definition at line 489 of file dictionary.h.

Constructor & Destructor Documentation

SayResponseOp::SayResponseOp ( const char *  name,
bool  is_public 
)
inline

Definition at line 497 of file dictionary.h.

virtual SayResponseOp::~SayResponseOp ( )
inlinevirtual

Definition at line 503 of file dictionary.h.

Member Function Documentation

virtual csString SayResponseOp::GetResponseScript ( )
virtual

Implements ResponseOperation.

virtual bool SayResponseOp::IsPublic ( )
inlinevirtual

Reimplemented from ResponseOperation.

Definition at line 510 of file dictionary.h.

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

Implements ResponseOperation.

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

Implements ResponseOperation.

Member Data Documentation

bool SayResponseOp::saypublic

Indicates whether the response dialog should be said publicly or /tell in private.

Definition at line 493 of file dictionary.h.

csString* SayResponseOp::sayWhat

Optional specific string to say, used by quest_scripts.

Definition at line 495 of file dictionary.h.


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