Planeshift
|
Melee will tell the npc to attack the most hated entity within range. 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 () |
MeleeOperation () | |
virtual OperationResult | Run (NPC *npc, bool interrupted) |
virtual | ~MeleeOperation () |
Protected Attributes | |
csString | attack_type |
gemNPCActor * | attacked_ent |
bool | attackInvincible |
bool | attackInvisible |
csString | attackMostHatedTribeTarget |
Melee operation "tribe" attribute. When set to true the < melee operation will use the most hated of all the tribe < members when deciding target. | |
csString | attackOutsideRegion |
Attack even outside region if a region is defined. | |
float | melee_range |
float | seek_range |
csString | stance |
Melee will tell the npc to attack the most hated entity within range.
Definition at line 1050 of file npcoperations.h.
MeleeOperation::MeleeOperation | ( | ) | [inline] |
Definition at line 1065 of file npcoperations.h.
virtual MeleeOperation::~MeleeOperation | ( | ) | [inline, virtual] |
Definition at line 1072 of file npcoperations.h.
virtual OperationResult MeleeOperation::Advance | ( | float | timedelta, |
NPC * | npc | ||
) | [virtual] |
Reimplemented from ScriptOperation.
virtual void MeleeOperation::InterruptOperation | ( | NPC * | npc | ) | [virtual] |
Reimplemented from ScriptOperation.
virtual bool MeleeOperation::Load | ( | iDocumentNode * | node | ) | [virtual] |
Reimplemented from ScriptOperation.
virtual ScriptOperation* MeleeOperation::MakeCopy | ( | ) | [virtual] |
Implements ScriptOperation.
virtual OperationResult MeleeOperation::Run | ( | NPC * | npc, |
bool | interrupted | ||
) | [virtual] |
Implements ScriptOperation.
csString MeleeOperation::attack_type [protected] |
Definition at line 1058 of file npcoperations.h.
gemNPCActor* MeleeOperation::attacked_ent [protected] |
Definition at line 1054 of file npcoperations.h.
bool MeleeOperation::attackInvincible [protected] |
Definition at line 1057 of file npcoperations.h.
bool MeleeOperation::attackInvisible [protected] |
Definition at line 1056 of file npcoperations.h.
csString MeleeOperation::attackMostHatedTribeTarget [protected] |
Melee operation "tribe" attribute. When set to true the < melee operation will use the most hated of all the tribe < members when deciding target.
Definition at line 1060 of file npcoperations.h.
csString MeleeOperation::attackOutsideRegion [protected] |
Attack even outside region if a region is defined.
Definition at line 1055 of file npcoperations.h.
float MeleeOperation::melee_range [protected] |
Definition at line 1053 of file npcoperations.h.
float MeleeOperation::seek_range [protected] |
Definition at line 1053 of file npcoperations.h.
csString MeleeOperation::stance [protected] |
Definition at line 1059 of file npcoperations.h.