Planeshift
Public Member Functions | Protected Attributes

EatOperation Class Reference

Eat will take a bite of a nearby dead actor and add resource to tribe wealth. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

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

Protected Attributes

csString resource

Detailed Description

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.


Constructor & Destructor Documentation

EatOperation::EatOperation ( ) [inline]

Definition at line 849 of file npcoperations.h.

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

Definition at line 850 of file npcoperations.h.


Member Function Documentation

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.


Member Data Documentation

csString EatOperation::resource [protected]

Definition at line 845 of file npcoperations.h.


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