Planeshift
Public Member Functions | Protected Attributes

MeleeOperation Class Reference

Melee will tell the npc to attack the most hated entity within range. 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 ()
 MeleeOperation ()
virtual OperationResult Run (NPC *npc, bool interrupted)
virtual ~MeleeOperation ()

Protected Attributes

csString attack_type
gemNPCActorattacked_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

Detailed Description

Melee will tell the npc to attack the most hated entity within range.

Definition at line 1050 of file npcoperations.h.


Constructor & Destructor Documentation

MeleeOperation::MeleeOperation ( ) [inline]

Definition at line 1065 of file npcoperations.h.

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

Definition at line 1072 of file npcoperations.h.


Member Function Documentation

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.


Member Data Documentation

csString MeleeOperation::attack_type [protected]

Definition at line 1058 of file npcoperations.h.

Definition at line 1054 of file npcoperations.h.

Definition at line 1057 of file npcoperations.h.

Definition at line 1056 of file npcoperations.h.

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.

Attack even outside region if a region is defined.

Definition at line 1055 of file npcoperations.h.

Definition at line 1053 of file npcoperations.h.

Definition at line 1053 of file npcoperations.h.

csString MeleeOperation::stance [protected]

Definition at line 1059 of file npcoperations.h.


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