Planeshift
Public Member Functions | Protected Attributes

EquipOperation Class Reference

Equip will tell the npc to equip a item. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

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

Protected Attributes

int count
csString item
csString slot

Detailed Description

Equip will tell the npc to equip a item.

Examples:

 <equip item="Sword" slot="righthand" count="1" /> 

Definition at line 888 of file npcoperations.h.


Constructor & Destructor Documentation

EquipOperation::EquipOperation ( ) [inline]

Definition at line 897 of file npcoperations.h.

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

Definition at line 898 of file npcoperations.h.


Member Function Documentation

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

Reimplemented from ScriptOperation.

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

Implements ScriptOperation.

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

Implements ScriptOperation.


Member Data Documentation

Definition at line 893 of file npcoperations.h.

csString EquipOperation::item [protected]

Definition at line 891 of file npcoperations.h.

csString EquipOperation::slot [protected]

Definition at line 892 of file npcoperations.h.


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