![]() |
Public API Reference |
This interface is implemented by the leaf iBTNode that monitors a CEL trigger. More...
#include <tools/behaviourtree.h>
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. | |
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.
| 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.