This object represents the entities which have attacked or hurt the NPC and prioritizes them.
More...
#include <npc.h>
|
void | AddHate (EID entity_id, float delta) |
|
void | Clear () |
|
void | DumpHateList (csString &output, const csVector3 &myPos, iSector *mySector) |
|
void | DumpHateList (NPC *npc, const csVector3 &myPos, iSector *mySector) |
|
float | GetHate (EID ent) |
|
gemNPCActor * | GetMostHated (NPC *npc, csVector3 &pos, iSector *sector, float range, LocationType *region, bool includeOutsideRegion, bool includeInvisible, bool includeInvincible, float *hate) |
| Find the most hated entity within range of given position. More...
|
|
| HateList (psNPCClient *npcclient, iEngine *engine, psWorld *world) |
|
bool | Remove (EID entity_id) |
|
| ~HateList () |
|
This object represents the entities which have attacked or hurt the NPC and prioritizes them.
Definition at line 77 of file npc.h.
Definition at line 83 of file npc.h.
void HateList::AddHate |
( |
EID |
entity_id, |
|
|
float |
delta |
|
) |
| |
void HateList::DumpHateList |
( |
csString & |
output, |
|
|
const csVector3 & |
myPos, |
|
|
iSector * |
mySector |
|
) |
| |
void HateList::DumpHateList |
( |
NPC * |
npc, |
|
|
const csVector3 & |
myPos, |
|
|
iSector * |
mySector |
|
) |
| |
float HateList::GetHate |
( |
EID |
ent | ) |
|
gemNPCActor* HateList::GetMostHated |
( |
NPC * |
npc, |
|
|
csVector3 & |
pos, |
|
|
iSector * |
sector, |
|
|
float |
range, |
|
|
LocationType * |
region, |
|
|
bool |
includeOutsideRegion, |
|
|
bool |
includeInvisible, |
|
|
bool |
includeInvincible, |
|
|
float * |
hate |
|
) |
| |
Find the most hated entity within range of given position.
Check the hate list and retrive most hated entity within range.
- Parameters
-
npc | The NPC |
pos | The position |
sector | The sector of the position |
range | The range to search for hated entities. |
region | The region to search for hated entities within. |
includeOutsideRegion | Include enties outside region in the search. |
includeInvisible | Include invisible entities in the search. |
includeInvincible | Include invincible entities in the search. |
hate | If diffrent from NULL, set upon return to the hate of the hated. |
- Returns
- The hated entity
bool HateList::Remove |
( |
EID |
entity_id | ) |
|
Definition at line 80 of file npc.h.
The documentation for this class was generated from the following file: