Planeshift
|
The network layer is notified of any deaths from players or NPCs on the server. More...
#include <perceptions.h>
Public Member Functions | |
DeathPerception (EID ent_id) | |
virtual void | ExecutePerception (NPC *npc, float weight) |
All preconditions has been checked, now excecute the perception. More... | |
virtual Perception * | MakeCopy () |
Make a copy of this perception. More... | |
![]() | |
virtual bool | GetLocation (csVector3 &pos, iSector *§or) |
Get a location assosiated with the perception. More... | |
virtual const csString & | GetName () const |
Get the name of the perception. More... | |
virtual float | GetRadius () const |
Get the radius of the perception. More... | |
virtual gemNPCObject * | GetTarget () |
Some perception has a target/source. More... | |
const csString & | GetType () const |
Get the type of the perception. More... | |
Perception (const char *name) | |
Constructor. More... | |
Perception (const char *name, const char *type) | |
Constructor. More... | |
void | SetType (const char *type) |
Set the type of the perception. More... | |
virtual bool | ShouldReact (Reaction *reaction, NPC *npc) |
Check if this perception should react to a reaction. More... | |
virtual csString | ToString (NPC *npc) |
Get a text description of the perception. More... | |
virtual | ~Perception () |
Destructor. More... | |
Protected Attributes | |
EID | who |
![]() | |
csString | name |
The name of this perception. More... | |
csString | type |
Type used by perceptions. Usally they correspond to the same value in a reaction. More... | |
The network layer is notified of any deaths from players or NPCs on the server.
This perception is passed to all NPCs so they can react, by removing the player from hate lists, stopping their combat or whatever.
Definition at line 417 of file perceptions.h.
|
inline |
Definition at line 423 of file perceptions.h.
All preconditions has been checked, now excecute the perception.
npc | The target of the percpetion. |
weight | Indicate how much the HateList of the npc should be changed. Value comes from the reaction. |
Reimplemented from Perception.
|
virtual |
|
protected |
Definition at line 420 of file perceptions.h.