CEL

Public API Reference

iTriggerFiredCondition Struct Reference

This interface is implemented by the leaf iBTNode that monitors a CEL trigger. More...

#include <tools/behaviourtree.h>

Inheritance diagram for iTriggerFiredCondition:

List of all members.

Public Member Functions

virtual void SetFireOnce (bool once)=0
 Set whether or not the execution of the condition will return true once or forever once the trigger has been fired.
virtual void SetTrigger (iTrigger *trigger)=0
 Set the trigger to be monitored by this node.

Detailed Description

This interface is implemented by the leaf iBTNode that monitors a CEL trigger.

It returns whether or not a trigger has been fired. The exact behaviour depends on the value set by SetFireOnce().

Definition at line 120 of file behaviourtree.h.


Member Function Documentation

virtual void iTriggerFiredCondition::SetFireOnce ( bool  once  )  [pure virtual]

Set whether or not the execution of the condition will return true once or forever once the trigger has been fired.

If once is true, then iBTNode::Execute() will return true only once each time the trigger is fired. Otherwise, iBTNode::Execute() will return true forever once the trigger has been fired. The default value is false.

virtual void iTriggerFiredCondition::SetTrigger ( iTrigger trigger  )  [pure virtual]

Set the trigger to be monitored by this node.


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

Generated for CEL: Crystal Entity Layer 2.0 by doxygen 1.6.1