|
Planeshift
|
Hate list modifications. More...
#include <npcoperations.h>
Public Member Functions | |
| HateListOperation () | |
| virtual bool | Load (iDocumentNode *node) |
| virtual ScriptOperation * | MakeCopy () |
| 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. | |
Hate list modifications.
Definition at line 909 of file npcoperations.h.
anonymous enum [protected] |
Flags definitions for use in the flags variable.
| MAX_HATE | |
| MIN_HATE | |
| ABS_HATE | |
| DELTA_HATE | |
| HATE_PERCEPTION |
Use last perception instead of target. |
Definition at line 915 of file npcoperations.h.
| HateListOperation::HateListOperation | ( | ) | [inline] |
Definition at line 931 of file npcoperations.h.
| virtual HateListOperation::~HateListOperation | ( | ) | [inline, virtual] |
Definition at line 932 of file npcoperations.h.
| 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.
float HateListOperation::absoluteHate [protected] |
Hate should be set to this value if ABS_HATE is set.
Definition at line 927 of file npcoperations.h.
float HateListOperation::deltaHate [protected] |
Added to hate if DELTA_HATE is set.
Definition at line 928 of file npcoperations.h.
unsigned int HateListOperation::flags [protected] |
Flags.
Definition at line 924 of file npcoperations.h.
float HateListOperation::maxHate [protected] |
Hate should have a max value if MAX_HATE is set.
Definition at line 925 of file npcoperations.h.
float HateListOperation::minHate [protected] |
Hate should bave a min value if MIN_HATE is set.
Definition at line 926 of file npcoperations.h.
1.7.3