Planeshift
Public Member Functions | Protected Types | Protected Attributes

HateListOperation Class Reference

Hate list modifications. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

 HateListOperation ()
virtual bool Load (iDocumentNode *node)
virtual ScriptOperationMakeCopy ()
virtual OperationResult Run (NPC *npc, bool interrupted)
virtual ~HateListOperation ()

Protected Types

enum  {
  MAX_HATE = 0x0001, MIN_HATE = 0x0002, ABS_HATE = 0x0004, DELTA_HATE = 0x0008,
  HATE_PERCEPTION = 0x0010
}
 

Flags definitions for use in the flags variable.

More...

Protected Attributes

float absoluteHate
 Hate should be set to this value if ABS_HATE is set.
float deltaHate
 Added to hate if DELTA_HATE is set.
unsigned int flags
 Flags.
float maxHate
 Hate should have a max value if MAX_HATE is set.
float minHate
 Hate should bave a min value if MIN_HATE is set.

Detailed Description

Hate list modifications.

Definition at line 909 of file npcoperations.h.


Member Enumeration Documentation

anonymous enum [protected]

Flags definitions for use in the flags variable.

Enumerator:
MAX_HATE 
MIN_HATE 
ABS_HATE 
DELTA_HATE 
HATE_PERCEPTION 

Use last perception instead of target.

Definition at line 915 of file npcoperations.h.


Constructor & Destructor Documentation

HateListOperation::HateListOperation ( ) [inline]

Definition at line 931 of file npcoperations.h.

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

Definition at line 932 of file npcoperations.h.


Member Function Documentation

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

Reimplemented from ScriptOperation.

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

Implements ScriptOperation.

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

Implements ScriptOperation.


Member Data Documentation

Hate should be set to this value if ABS_HATE is set.

Definition at line 927 of file npcoperations.h.

Added to hate if DELTA_HATE is set.

Definition at line 928 of file npcoperations.h.

Flags.

Definition at line 924 of file npcoperations.h.

Hate should have a max value if MAX_HATE is set.

Definition at line 925 of file npcoperations.h.

Hate should bave a min value if MIN_HATE is set.

Definition at line 926 of file npcoperations.h.


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