Planeshift
Public Member Functions | Protected Types | Protected Attributes

RotateOperation Class Reference

Rotating requires storing or determining the angle to rotate to, and the 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 ()
 RotateOperation ()
virtual OperationResult Run (NPC *npc, bool interrupted)
float SeekAngle (NPC *npc, float targetYRot)
virtual ~RotateOperation ()

Protected Types

enum  {
  ROT_UNKNOWN, ROT_ABSOLUTE, ROT_RELATIVE, ROT_TARGET,
  ROT_LOCATE_DESTINATION, ROT_LOCATE_ROTATION, ROT_RANDOM, ROT_REGION,
  ROT_TRIBE_HOME
}

Protected Attributes

csString action
float angle_delta
float delta_angle
float max_range
float min_range
int op_type
float remaining
float target_angle

Detailed Description

Rotating requires storing or determining the angle to rotate to, and the animation action.

Definition at line 1365 of file npcoperations.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
ROT_UNKNOWN 
ROT_ABSOLUTE 
ROT_RELATIVE 
ROT_TARGET 
ROT_LOCATE_DESTINATION 
ROT_LOCATE_ROTATION 
ROT_RANDOM 
ROT_REGION 
ROT_TRIBE_HOME 

Definition at line 1368 of file npcoperations.h.


Constructor & Destructor Documentation

RotateOperation::RotateOperation ( ) [inline]

Definition at line 1394 of file npcoperations.h.

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

Definition at line 1406 of file npcoperations.h.


Member Function Documentation

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

Reimplemented from ScriptOperation.

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

Reimplemented from ScriptOperation.

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

Reimplemented from ScriptOperation.

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

Implements ScriptOperation.

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

Implements ScriptOperation.

float RotateOperation::SeekAngle ( NPC npc,
float  targetYRot 
)

Member Data Documentation

csString RotateOperation::action [protected]

Definition at line 1388 of file npcoperations.h.

Definition at line 1386 of file npcoperations.h.

Definition at line 1382 of file npcoperations.h.

Definition at line 1381 of file npcoperations.h.

Definition at line 1381 of file npcoperations.h.

Definition at line 1380 of file npcoperations.h.

Definition at line 1391 of file npcoperations.h.

Definition at line 1384 of file npcoperations.h.


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