Planeshift
|
Rotating requires storing or determining the angle to rotate to, and the animation action. More...
#include <npcoperations.h>
Public Member Functions | |
virtual OperationResult | Advance (float timedelta, NPC *npc) |
virtual void | InterruptOperation (NPC *npc) |
virtual bool | Load (iDocumentNode *node) |
virtual ScriptOperation * | MakeCopy () |
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 |
Rotating requires storing or determining the angle to rotate to, and the animation action.
Definition at line 1365 of file npcoperations.h.
anonymous enum [protected] |
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.
RotateOperation::RotateOperation | ( | ) | [inline] |
Definition at line 1394 of file npcoperations.h.
virtual RotateOperation::~RotateOperation | ( | ) | [inline, virtual] |
Definition at line 1406 of file npcoperations.h.
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.
csString RotateOperation::action [protected] |
Definition at line 1388 of file npcoperations.h.
float RotateOperation::angle_delta [protected] |
Definition at line 1386 of file npcoperations.h.
float RotateOperation::delta_angle [protected] |
Definition at line 1382 of file npcoperations.h.
float RotateOperation::max_range [protected] |
Definition at line 1381 of file npcoperations.h.
float RotateOperation::min_range [protected] |
Definition at line 1381 of file npcoperations.h.
int RotateOperation::op_type [protected] |
Definition at line 1380 of file npcoperations.h.
float RotateOperation::remaining [protected] |
Definition at line 1391 of file npcoperations.h.
float RotateOperation::target_angle [protected] |
Definition at line 1384 of file npcoperations.h.