Planeshift
Public Member Functions | Protected Attributes

DeathPerception Class Reference

The network layer is notified of any deaths from players or NPCs on the server. More...

#include <perceptions.h>

List of all members.

Public Member Functions

 DeathPerception (EID ent_id)
virtual void ExecutePerception (NPC *npc, float weight)
 All preconditions has been checked, now excecute the perception.
virtual PerceptionMakeCopy ()
 Make a copy of this perception.

Protected Attributes

EID who

Detailed Description

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.


Constructor & Destructor Documentation

DeathPerception::DeathPerception ( EID  ent_id) [inline]

Definition at line 426 of file perceptions.h.


Member Function Documentation

virtual void DeathPerception::ExecutePerception ( NPC npc,
float  weight 
) [virtual]

All preconditions has been checked, now excecute the perception.

Parameters:
npcThe target of the percpetion.
weightIndicate how much the HateList of the npc should be changed. Value comes from the reaction.

Reimplemented from Perception.

virtual Perception* DeathPerception::MakeCopy ( ) [virtual]

Make a copy of this perception.

Returns:
the copy.

Reimplemented from Perception.


Member Data Documentation

EID DeathPerception::who [protected]

Definition at line 423 of file perceptions.h.


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