Planeshift
Public Member Functions | Protected Attributes

psRespawnGameEvent Class Reference

When an NPC or mob is killed in the spawn manager, its respawn event is immediately created and added to the schedule to be triggered at the appropriate time. More...

#include <spawnmanager.h>

List of all members.

Public Member Functions

 psRespawnGameEvent (SpawnManager *mgr, int delayticks, PID playerID, SpawnRule *spawnRule)
 Event to respawn given PID in a position to be found by the spawnRule.
virtual void Trigger ()
 Abstract event processing function.

Protected Attributes

PID playerID
 The PID of the entity to respawn.
SpawnManagerspawnmanager
SpawnRulespawnRule
 The rule to use for determine where.

Detailed Description

When an NPC or mob is killed in the spawn manager, its respawn event is immediately created and added to the schedule to be triggered at the appropriate time.

Definition at line 400 of file spawnmanager.h.


Constructor & Destructor Documentation

psRespawnGameEvent::psRespawnGameEvent ( SpawnManager mgr,
int  delayticks,
PID  playerID,
SpawnRule spawnRule 
)

Event to respawn given PID in a position to be found by the spawnRule.


Member Function Documentation

virtual void psRespawnGameEvent::Trigger ( ) [virtual]

Abstract event processing function.

This functino have to be overridden and will be called if CheckTrigger is ok at the time given in the constructor.

Implements psGameEvent.


Member Data Documentation

The PID of the entity to respawn.

Definition at line 404 of file spawnmanager.h.

Definition at line 403 of file spawnmanager.h.

The rule to use for determine where.

Definition at line 405 of file spawnmanager.h.


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