Planeshift
|
The event that makes the NPC brain go TICK. More...
#include <npc.h>
Public Member Functions | |
psNPCTick (int offsetticks, NPC *npc) | |
void | Remove () |
virtual csString | ToString () const |
Return a string with information about the event. | |
virtual void | Trigger () |
Abstract event processing function. | |
Protected Attributes | |
NPC * | npc |
virtual csString psNPCTick::ToString | ( | ) | const [inline, virtual] |
Return a string with information about the event.
Used for debugging to be able to identify things like way did this event take so long to execute.
TODO: Make this function abstract. But for now return "".
Reimplemented from psGameEvent.
virtual void psNPCTick::Trigger | ( | ) | [inline, 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.
NPC* psNPCTick::npc [protected] |