|
Planeshift
|
Loot will make the NPC loot specified items. More...
#include <npcoperations.h>
Public Member Functions | |
| virtual bool | Load (iDocumentNode *node) |
| LootOperation () | |
| virtual ScriptOperation * | MakeCopy () |
| virtual OperationResult | Run (NPC *npc, bool interrupted) |
| virtual | ~LootOperation () |
Protected Attributes | |
| csString | type |
| Type of items to loot. | |
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.
| LootOperation::LootOperation | ( | ) | [inline] |
Definition at line 1903 of file npcoperations.h.
| virtual LootOperation::~LootOperation | ( | ) | [inline, virtual] |
Definition at line 1904 of file npcoperations.h.
| 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.
csString LootOperation::type [protected] |
Type of items to loot.
Definition at line 1899 of file npcoperations.h.
1.7.3