Planeshift
|
Eat will take a bite of a nearby dead actor and add resource to tribe wealth. More...
#include <npcoperations.h>
Public Member Functions | |
EatOperation () | |
virtual bool | Load (iDocumentNode *node) |
virtual ScriptOperation * | MakeCopy () |
virtual OperationResult | Run (NPC *npc, bool interrupted) |
virtual | ~EatOperation () |
Protected Attributes | |
csString | resource |
Eat will take a bite of a nearby dead actor and add resource to tribe wealth.
Examples:
<eat resource="tribe:wealth" /> <eat resource="Flesh" />
Definition at line 842 of file npcoperations.h.
EatOperation::EatOperation | ( | ) | [inline] |
Definition at line 849 of file npcoperations.h.
virtual EatOperation::~EatOperation | ( | ) | [inline, virtual] |
Definition at line 850 of file npcoperations.h.
virtual bool EatOperation::Load | ( | iDocumentNode * | node | ) | [virtual] |
Reimplemented from ScriptOperation.
virtual ScriptOperation* EatOperation::MakeCopy | ( | ) | [virtual] |
Implements ScriptOperation.
virtual OperationResult EatOperation::Run | ( | NPC * | npc, |
bool | interrupted | ||
) | [virtual] |
Implements ScriptOperation.
csString EatOperation::resource [protected] |
Definition at line 845 of file npcoperations.h.