Planeshift
Public Member Functions | Protected Attributes

LootOperation Class Reference

Loot will make the NPC loot specified items. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

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

Protected Attributes

csString type
 Type of items to loot.

Detailed Description

Loot will make the NPC loot specified items.

This class is the implementation of the loot operations used in behavior scripts for NPCS.

Examples:

  <loot type="all"     />
  <loot type="weapons" /> 

Definition at line 1896 of file npcoperations.h.


Constructor & Destructor Documentation

LootOperation::LootOperation ( ) [inline]

Definition at line 1903 of file npcoperations.h.

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

Definition at line 1904 of file npcoperations.h.


Member Function Documentation

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

Reimplemented from ScriptOperation.

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

Implements ScriptOperation.

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

Implements ScriptOperation.


Member Data Documentation

csString LootOperation::type [protected]

Type of items to loot.

Definition at line 1899 of file npcoperations.h.


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