Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

MoveOperation Class Reference

Moving entails a velocity vector and an animation action. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

virtual OperationResult Advance (float timedelta, NPC *npc)
virtual void InterruptOperation (NPC *npc)
virtual bool Load (iDocumentNode *node)
virtual ScriptOperationMakeCopy ()
 MoveOperation ()
virtual OperationResult Run (NPC *npc, bool interrupted)
virtual ~MoveOperation ()

Protected Member Functions

 MoveOperation (const char *n)

Protected Attributes

csString action
float angle
float duration
float remaining

Detailed Description

Moving entails a velocity vector and an animation action.

Definition at line 652 of file npcoperations.h.


Constructor & Destructor Documentation

MoveOperation::MoveOperation ( const char *  n) [inline, protected]

Definition at line 663 of file npcoperations.h.

MoveOperation::MoveOperation ( ) [inline]

Definition at line 671 of file npcoperations.h.

virtual MoveOperation::~MoveOperation ( ) [inline, virtual]

Definition at line 677 of file npcoperations.h.


Member Function Documentation

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

Reimplemented from ScriptOperation.

virtual void MoveOperation::InterruptOperation ( NPC npc) [virtual]

Reimplemented from ScriptOperation.

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

Reimplemented from ScriptOperation.

Reimplemented in CircleOperation.

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

Implements ScriptOperation.

Reimplemented in CircleOperation.

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

Implements ScriptOperation.

Reimplemented in CircleOperation.


Member Data Documentation

csString MoveOperation::action [protected]

Definition at line 655 of file npcoperations.h.

Definition at line 658 of file npcoperations.h.

Definition at line 656 of file npcoperations.h.

Definition at line 661 of file npcoperations.h.


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