Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

MovementOperation Class Reference

Abstract common class for Move operations that use paths. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

virtual OperationResult Advance (float timedelta, NPC *npc)
bool EndPointChanged (const csVector3 &endPos, const iSector *endSector) const
virtual bool GetEndPosition (NPC *npc, const csVector3 &myPos, const iSector *mySector, csVector3 &endPos, iSector *&endSector)=0
virtual void InterruptOperation (NPC *npc)
virtual bool Load (iDocumentNode *node)
 MovementOperation (const char *name)
virtual OperationResult Run (NPC *npc, bool interrupted)
virtual bool UpdateEndPosition (NPC *npc, const csVector3 &myPos, const iSector *mySector, csVector3 &endPos, iSector *&endSector)=0
virtual ~MovementOperation ()

Protected Member Functions

 MovementOperation (const MovementOperation *other)

Protected Attributes

csString action
 The animation used during chase.
float currentDistance
 The distance to the current local destination.
csVector3 endPos
iSector * endSector
csRef< iCelHPath > path

Detailed Description

Abstract common class for Move operations that use paths.

Definition at line 291 of file npcoperations.h.


Constructor & Destructor Documentation

MovementOperation::MovementOperation ( const MovementOperation other) [protected]
MovementOperation::MovementOperation ( const char *  name)
virtual MovementOperation::~MovementOperation ( ) [inline, virtual]

Definition at line 314 of file npcoperations.h.


Member Function Documentation

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

Reimplemented from ScriptOperation.

bool MovementOperation::EndPointChanged ( const csVector3 &  endPos,
const iSector *  endSector 
) const
virtual bool MovementOperation::GetEndPosition ( NPC npc,
const csVector3 &  myPos,
const iSector *  mySector,
csVector3 &  endPos,
iSector *&  endSector 
) [pure virtual]
virtual void MovementOperation::InterruptOperation ( NPC npc) [virtual]

Reimplemented from ScriptOperation.

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

Reimplemented from ScriptOperation.

Reimplemented in ChaseOperation, MoveToOperation, and NavigateOperation.

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

Implements ScriptOperation.

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

Member Data Documentation

csString MovementOperation::action [protected]

The animation used during chase.

Reimplemented in MoveToOperation, and NavigateOperation.

Definition at line 305 of file npcoperations.h.

The distance to the current local destination.

Definition at line 302 of file npcoperations.h.

csVector3 MovementOperation::endPos [protected]

Reimplemented in NavigateOperation.

Definition at line 299 of file npcoperations.h.

iSector* MovementOperation::endSector [protected]

Reimplemented in NavigateOperation.

Definition at line 300 of file npcoperations.h.

csRef<iCelHPath> MovementOperation::path [protected]

Definition at line 296 of file npcoperations.h.


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