Planeshift
Public Member Functions | Protected Types | Protected Attributes

TalkOperation Class Reference

Talk will tell the npc to communicate to a nearby entity. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

virtual bool Load (iDocumentNode *node)
virtual ScriptOperationMakeCopy ()
virtual OperationResult Run (NPC *npc, bool interrupted)
 TalkOperation ()
virtual ~TalkOperation ()

Protected Types

typedef
psNPCCommandsMessage::PerceptionTalkType 
TalkType

Protected Attributes

csString command
 Command to percept to target if target is a NPC.
bool talkPublic
 Should this be public or only to the target.
csString talkText
 The text to send to the clients.
TalkType talkType
 What kind of talk, default say.
bool target
 True if this is should go to the target of the NPC.

Detailed Description

Talk will tell the npc to communicate to a nearby entity.

Definition at line 1571 of file npcoperations.h.


Member Typedef Documentation

Definition at line 1574 of file npcoperations.h.


Constructor & Destructor Documentation

TalkOperation::TalkOperation ( ) [inline]

Definition at line 1584 of file npcoperations.h.

virtual TalkOperation::~TalkOperation ( ) [inline, virtual]

Definition at line 1585 of file npcoperations.h.


Member Function Documentation

virtual bool TalkOperation::Load ( iDocumentNode *  node) [virtual]

Reimplemented from ScriptOperation.

virtual ScriptOperation* TalkOperation::MakeCopy ( ) [virtual]

Implements ScriptOperation.

virtual OperationResult TalkOperation::Run ( NPC npc,
bool  interrupted 
) [virtual]

Implements ScriptOperation.


Member Data Documentation

csString TalkOperation::command [protected]

Command to percept to target if target is a NPC.

Definition at line 1580 of file npcoperations.h.

bool TalkOperation::talkPublic [protected]

Should this be public or only to the target.

Definition at line 1578 of file npcoperations.h.

csString TalkOperation::talkText [protected]

The text to send to the clients.

Definition at line 1576 of file npcoperations.h.

What kind of talk, default say.

Definition at line 1577 of file npcoperations.h.

bool TalkOperation::target [protected]

True if this is should go to the target of the NPC.

Definition at line 1579 of file npcoperations.h.


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