Planeshift
|
Watch operation will tell if the targt goes out of range. More...
#include <npcoperations.h>
Public Member Functions | |
virtual OperationResult | Advance (float timedelta, NPC *npc) |
virtual void | InterruptOperation (NPC *npc) |
virtual bool | Load (iDocumentNode *node) |
virtual ScriptOperation * | MakeCopy () |
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< gemNPCObject > | watchedEnt |
bool | watchInvincible |
bool | watchInvisible |
float | watchRange |
Static Protected Attributes | |
static const char * | typeStr [] |
Watch operation will tell if the targt goes out of range.
Definition at line 1844 of file npcoperations.h.
anonymous enum [protected] |
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.
WatchOperation::WatchOperation | ( | ) | [inline] |
Definition at line 1867 of file npcoperations.h.
virtual WatchOperation::~WatchOperation | ( | ) | [inline, virtual] |
Definition at line 1872 of file npcoperations.h.
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.
float WatchOperation::searchRange [protected] |
Used for watch of type NEAREST_*.
Definition at line 1849 of file npcoperations.h.
int WatchOperation::type [protected] |
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.
bool WatchOperation::watchInvincible [protected] |
Definition at line 1851 of file npcoperations.h.
bool WatchOperation::watchInvisible [protected] |
Definition at line 1850 of file npcoperations.h.
float WatchOperation::watchRange [protected] |
Definition at line 1847 of file npcoperations.h.