Planeshift
Public Member Functions | Protected Attributes

LocateOperation Class Reference

Locate is a very powerful function which will find the nearest object of the named tag, within a range. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

WaypointCalculateWaypoint (NPC *npc, csVector3 located_pos, iSector *located_sector, float located_range)
 Use -1 for located_range if range scheck sould be skipped.
virtual bool Load (iDocumentNode *node)
 LocateOperation ()
 LocateOperation (const LocateOperation *other)
virtual ScriptOperationMakeCopy ()
virtual OperationResult Run (NPC *npc, bool interrupted)
virtual ~LocateOperation ()

Protected Attributes

csString destination
 Alternate destination instead of "Active" locate.
bool locateInvincible
 Locate invincible targets.
bool locateInvisible
 Locate invisible targets.
csString locateOutsideRegion
 Locate targets outside a region if a region exist. Default false.
csString object
bool random
float range
bool static_loc
bool staticLocated
NPC::Locate storedStaticLocated

Detailed Description

Locate is a very powerful function which will find the nearest object of the named tag, within a range.

Definition at line 961 of file npcoperations.h.


Constructor & Destructor Documentation

LocateOperation::LocateOperation ( )
LocateOperation::LocateOperation ( const LocateOperation other)
virtual LocateOperation::~LocateOperation ( ) [inline, virtual]

Definition at line 982 of file npcoperations.h.


Member Function Documentation

Waypoint* LocateOperation::CalculateWaypoint ( NPC npc,
csVector3  located_pos,
iSector *  located_sector,
float  located_range 
)

Use -1 for located_range if range scheck sould be skipped.

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

Reimplemented from ScriptOperation.

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

Implements ScriptOperation.

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

Implements ScriptOperation.


Member Data Documentation

csString LocateOperation::destination [protected]

Alternate destination instead of "Active" locate.

Definition at line 976 of file npcoperations.h.

Locate invincible targets.

Definition at line 975 of file npcoperations.h.

Locate invisible targets.

Definition at line 974 of file npcoperations.h.

Locate targets outside a region if a region exist. Default false.

Definition at line 973 of file npcoperations.h.

csString LocateOperation::object [protected]

Definition at line 969 of file npcoperations.h.

bool LocateOperation::random [protected]

Definition at line 972 of file npcoperations.h.

Definition at line 970 of file npcoperations.h.

bool LocateOperation::static_loc [protected]

Definition at line 971 of file npcoperations.h.

Definition at line 965 of file npcoperations.h.

Definition at line 966 of file npcoperations.h.


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