Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

CastOperation Class Reference

Let the NPC cast a spell. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

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

Protected Member Functions

 CastOperation (const CastOperation *other)
 Constructor for this operation, used by the MakeCopy.

Protected Attributes

csString kFactor
csString spell

Detailed Description

Let the NPC cast a spell.

Definition at line 420 of file npcoperations.h.


Constructor & Destructor Documentation

CastOperation::CastOperation ( const CastOperation other) [protected]

Constructor for this operation, used by the MakeCopy.

This constructor will copy all the Operation Parameters from the other operation and initialize all Instance Variables to default values.

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

Definition at line 436 of file npcoperations.h.


Member Function Documentation

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

Reimplemented from ScriptOperation.

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

Implements ScriptOperation.

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

Implements ScriptOperation.


Member Data Documentation

csString CastOperation::kFactor [protected]

Definition at line 424 of file npcoperations.h.

csString CastOperation::spell [protected]

Definition at line 423 of file npcoperations.h.


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