Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

ChangeBrainOperation Class Reference

Let the NPC change brain. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

csString brain

Detailed Description

Let the NPC change brain.

Definition at line 447 of file npcoperations.h.


Constructor & Destructor Documentation

ChangeBrainOperation::ChangeBrainOperation ( const ChangeBrainOperation 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.

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

Definition at line 462 of file npcoperations.h.


Member Function Documentation

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

Reimplemented from ScriptOperation.

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

Implements ScriptOperation.

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

Implements ScriptOperation.


Member Data Documentation

csString ChangeBrainOperation::brain [protected]

Definition at line 450 of file npcoperations.h.


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