Planeshift
Public Member Functions | Protected Attributes

MoveToOperation Class Reference

Moving to a spot entails a position vector, a linear velocity, and an animation action. 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 ()
 MoveToOperation ()
 MoveToOperation (const MoveToOperation *other)
virtual bool UpdateEndPosition (NPC *npc, const csVector3 &myPos, const iSector *mySector, csVector3 &endPos, iSector *&endSector)
virtual ~MoveToOperation ()

Protected Attributes

csString action
 The animation used during chase.
csVector3 destPos
iSector * destSector
csString memoryCheck
 Used to keep memory name in case coordinates are taken from there.

Detailed Description

Moving to a spot entails a position vector, a linear velocity, and an animation action.

Definition at line 1143 of file npcoperations.h.


Constructor & Destructor Documentation

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

Definition at line 1154 of file npcoperations.h.


Member Function Documentation

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

Implements MovementOperation.

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

Reimplemented from MovementOperation.

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

Implements ScriptOperation.

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

Implements MovementOperation.


Member Data Documentation

csString MoveToOperation::action [protected]

The animation used during chase.

Reimplemented from MovementOperation.

Definition at line 1150 of file npcoperations.h.

csVector3 MoveToOperation::destPos [protected]

Definition at line 1146 of file npcoperations.h.

iSector* MoveToOperation::destSector [protected]

Definition at line 1147 of file npcoperations.h.

csString MoveToOperation::memoryCheck [protected]

Used to keep memory name in case coordinates are taken from there.

Definition at line 1149 of file npcoperations.h.


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