Planeshift
Public Member Functions | Protected Types | Protected Attributes | Static Protected Attributes

WatchOperation Class Reference

Watch operation will tell if the targt goes out of range. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

virtual OperationResult Advance (float timedelta, NPC *npc)
virtual void InterruptOperation (NPC *npc)
virtual bool Load (iDocumentNode *node)
virtual ScriptOperationMakeCopy ()
virtual OperationResult Run (NPC *npc, bool interrupted)
 WatchOperation ()
virtual ~WatchOperation ()

Protected Types

enum  {
  NEAREST_ACTOR, NEAREST_NPC, NEAREST_PLAYER, OWNER,
  TARGET
}

Protected Attributes

float searchRange
 Used for watch of type NEAREST_*.
int type
csWeakRef< gemNPCObjectwatchedEnt
bool watchInvincible
bool watchInvisible
float watchRange

Static Protected Attributes

static const char * typeStr []

Detailed Description

Watch operation will tell if the targt goes out of range.

Definition at line 1844 of file npcoperations.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
NEAREST_ACTOR 

Sense Players and NPC's.

NEAREST_NPC 

Sense only NPC's.

NEAREST_PLAYER 

Sense only players.

OWNER 
TARGET 

Definition at line 1855 of file npcoperations.h.


Constructor & Destructor Documentation

WatchOperation::WatchOperation ( ) [inline]

Definition at line 1867 of file npcoperations.h.

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

Definition at line 1872 of file npcoperations.h.


Member Function Documentation

virtual OperationResult WatchOperation::Advance ( float  timedelta,
NPC npc 
) [virtual]

Reimplemented from ScriptOperation.

virtual void WatchOperation::InterruptOperation ( NPC npc) [virtual]

Reimplemented from ScriptOperation.

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

Reimplemented from ScriptOperation.

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

Implements ScriptOperation.

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

Implements ScriptOperation.


Member Data Documentation

Used for watch of type NEAREST_*.

Definition at line 1849 of file npcoperations.h.

Definition at line 1848 of file npcoperations.h.

const char* WatchOperation::typeStr[] [static, protected]

Definition at line 1863 of file npcoperations.h.

csWeakRef<gemNPCObject> WatchOperation::watchedEnt [protected]

Definition at line 1853 of file npcoperations.h.

Definition at line 1851 of file npcoperations.h.

Definition at line 1850 of file npcoperations.h.

Definition at line 1847 of file npcoperations.h.


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