Planeshift
Public Member Functions | Protected Attributes

psNPCTick Class Reference

The event that makes the NPC brain go TICK. More...

#include <npc.h>

List of all members.

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

NPCnpc

Detailed Description

The event that makes the NPC brain go TICK.

Definition at line 894 of file npc.h.


Constructor & Destructor Documentation

psNPCTick::psNPCTick ( int  offsetticks,
NPC npc 
) [inline]

Definition at line 900 of file npc.h.


Member Function Documentation

void psNPCTick::Remove ( ) [inline]

Definition at line 911 of file npc.h.

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.

Definition at line 917 of file npc.h.

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.

Definition at line 902 of file npc.h.


Member Data Documentation

NPC* psNPCTick::npc [protected]

Definition at line 897 of file npc.h.


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