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. | |
virtual Perception * | MakeCopy () |
Make a copy of this perception. | |
Protected Attributes | |
EID | who |
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 420 of file perceptions.h.
DeathPerception::DeathPerception | ( | EID | ent_id | ) | [inline] |
Definition at line 426 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 Perception* DeathPerception::MakeCopy | ( | ) | [virtual] |
EID DeathPerception::who [protected] |
Definition at line 423 of file perceptions.h.