Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

NavigateOperation Class Reference

Navigate moves the NPC to the position and orientation of the last located thing. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

virtual bool GetEndPosition (NPC *npc, const csVector3 &myPos, const iSector *mySector, csVector3 &endPos, iSector *&endSector)
virtual bool Load (iDocumentNode *node)
virtual ScriptOperationMakeCopy ()
 NavigateOperation ()
virtual bool UpdateEndPosition (NPC *npc, const csVector3 &myPos, const iSector *mySector, csVector3 &endPos, iSector *&endSector)
virtual ~NavigateOperation ()

Protected Member Functions

 NavigateOperation (const NavigateOperation *other)

Protected Attributes

csString action
 The animation used during chase.
float endAngle
 The angle of the target.
csVector3 endPos
 The end position of the target of the navigate.
iSector * endSector
 The sector of the target of the navigate.
bool forceEndPosition

Detailed Description

Navigate moves the NPC to the position and orientation of the last located thing.

(See LocateOperation)

Definition at line 1172 of file npcoperations.h.


Constructor & Destructor Documentation

NavigateOperation::NavigateOperation ( )
NavigateOperation::NavigateOperation ( const NavigateOperation other) [protected]
virtual NavigateOperation::~NavigateOperation ( ) [inline, virtual]

Definition at line 1188 of file npcoperations.h.


Member Function Documentation

virtual bool NavigateOperation::GetEndPosition ( NPC npc,
const csVector3 &  myPos,
const iSector *  mySector,
csVector3 &  endPos,
iSector *&  endSector 
) [virtual]

Implements MovementOperation.

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

Reimplemented from MovementOperation.

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

Implements ScriptOperation.

virtual bool NavigateOperation::UpdateEndPosition ( NPC npc,
const csVector3 &  myPos,
const iSector *  mySector,
csVector3 &  endPos,
iSector *&  endSector 
) [virtual]

Implements MovementOperation.


Member Data Documentation

csString NavigateOperation::action [protected]

The animation used during chase.

Reimplemented from MovementOperation.

Definition at line 1175 of file npcoperations.h.

The angle of the target.

Definition at line 1178 of file npcoperations.h.

csVector3 NavigateOperation::endPos [protected]

The end position of the target of the navigate.

Reimplemented from MovementOperation.

Definition at line 1180 of file npcoperations.h.

iSector* NavigateOperation::endSector [protected]

The sector of the target of the navigate.

Reimplemented from MovementOperation.

Definition at line 1179 of file npcoperations.h.

Definition at line 1176 of file npcoperations.h.


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