CEL

Public API Reference

iWatchQuestTriggerFactory Struct Reference

This interface is implemented by the trigger that fires when a mesh becomes visible. More...

#include <tools/questmanager.h>

List of all members.

Public Member Functions

virtual void SetChecktimeParameter (const char *time)=0
 Set the interval (in milliseconds) after which this trigger will check visibility again.
virtual void SetEntityParameter (const char *entity, const char *tag=0)=0
 Set the name of the source entity containing the pcmesh property class on which this trigger will fire.
virtual void SetOffsetParameter (const char *offsetx, const char *offsety, const char *offsetz)=0
 Optional offset parameter.
virtual void SetRadiusParameter (const char *radius)=0
 Set the maximum radius for visibility checking.
virtual void SetTargetEntityParameter (const char *entity, const char *tag=0)=0
 Set the name of the target entity containing the pcmesh property class on which this trigger will fire.


Detailed Description

This interface is implemented by the trigger that fires when a mesh becomes visible.

You can query this interface from the trigger factory if you want to manually control this factory as opposed to loading its definition from an XML document.

The predefined name of this trigger type is 'cel.questtrigger.watch'.

In XML, factories recognize the following attributes on the 'fireon' node:

Definition at line 1169 of file questmanager.h.


Member Function Documentation

virtual void iWatchQuestTriggerFactory::SetChecktimeParameter ( const char *  time  )  [pure virtual]

Set the interval (in milliseconds) after which this trigger will check visibility again.

By default this is equal to 1000 which means there will be a check every second.

Parameters:
time is the interval in milliseconds or a parameter (starts with '$').

virtual void iWatchQuestTriggerFactory::SetEntityParameter ( const char *  entity,
const char *  tag = 0 
) [pure virtual]

Set the name of the source entity containing the pcmesh property class on which this trigger will fire.

Parameters:
entity is the name of the entity or a parameter (starts with '$').
tag is the optional tag of the entity or a parameter (starts with '$').

virtual void iWatchQuestTriggerFactory::SetOffsetParameter ( const char *  offsetx,
const char *  offsety,
const char *  offsetz 
) [pure virtual]

Optional offset parameter.

This offset will be added to the position of the start and target locations.

Parameters:
offsetx is the x offset or a parameter (starts with '$').
offsety is the y offset or a parameter (starts with '$').
offsetz is the z offset or a parameter (starts with '$').

virtual void iWatchQuestTriggerFactory::SetRadiusParameter ( const char *  radius  )  [pure virtual]

Set the maximum radius for visibility checking.

By default this is equal to infinity.

Parameters:
radius is the maximum radius or a parameter (starts with '$').

virtual void iWatchQuestTriggerFactory::SetTargetEntityParameter ( const char *  entity,
const char *  tag = 0 
) [pure virtual]

Set the name of the target entity containing the pcmesh property class on which this trigger will fire.

Parameters:
entity is the name of the entity or a parameter (starts with '$').
tag is the optional tag of the entity or a parameter (starts with '$').


The documentation for this struct was generated from the following file:
Generated for CEL: Crystal Entity Layer by doxygen 1.4.7