Planeshift
|
Time out event on interacting with an action item. More...
#include <actionmanager.h>
Public Member Functions | |
virtual bool | IsValid () |
Return the valid flag. | |
psActionTimeoutGameEvent (ActionManager *mgr, const psActionLocation *actionLocation, EID actorEID) | |
Constructor. | |
virtual void | Trigger () |
Abstract event processing function. | |
~psActionTimeoutGameEvent () | |
Destructor. | |
Protected Attributes | |
const psActionLocation * | actionLocation |
The action location. | |
ActionManager * | actionManager |
Reference to the action manager. | |
EID | actorEID |
Reference to the actor. | |
bool | valid |
Is this trigger still valid. |
Time out event on interacting with an action item.
This timer is fired when an entity is detected to trigger an action location. It will than regullary check if the entity has left and release the entity from the triggered action location.
Definition at line 64 of file actionmanager.h.
psActionTimeoutGameEvent::psActionTimeoutGameEvent | ( | ActionManager * | mgr, |
const psActionLocation * | actionLocation, | ||
EID | actorEID | ||
) |
Constructor.
mgr | Pointer to ActionManager, used for callbacks from Trigger. |
actionLocation | Action location to guard. actorEID The EID of the actor that is inside the action location. |
psActionTimeoutGameEvent::~psActionTimeoutGameEvent | ( | ) |
Destructor.
virtual bool psActionTimeoutGameEvent::IsValid | ( | ) | [inline, virtual] |
Return the valid flag.
Reimplemented from psGameEvent.
Definition at line 85 of file actionmanager.h.
virtual void psActionTimeoutGameEvent::Trigger | ( | ) | [virtual] |
Abstract event processing function.
Implements psGameEvent.
const psActionLocation* psActionTimeoutGameEvent::actionLocation [protected] |
The action location.
Definition at line 95 of file actionmanager.h.
ActionManager* psActionTimeoutGameEvent::actionManager [protected] |
Reference to the action manager.
Definition at line 91 of file actionmanager.h.
EID psActionTimeoutGameEvent::actorEID [protected] |
Reference to the actor.
Definition at line 94 of file actionmanager.h.
bool psActionTimeoutGameEvent::valid [protected] |
Is this trigger still valid.
Reimplemented from psGameEvent.
Definition at line 92 of file actionmanager.h.