Planeshift
|
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>
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. | |
SpawnManager * | spawnmanager |
SpawnRule * | spawnRule |
The rule to use for determine where. |
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.
psRespawnGameEvent::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 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.
PID psRespawnGameEvent::playerID [protected] |
The PID of the entity to respawn.
Definition at line 404 of file spawnmanager.h.
SpawnManager* psRespawnGameEvent::spawnmanager [protected] |
Definition at line 403 of file spawnmanager.h.
SpawnRule* psRespawnGameEvent::spawnRule [protected] |
The rule to use for determine where.
Definition at line 405 of file spawnmanager.h.