|
Qualia
0.2
|
A node that repeats its child a specified number of times. More...
#include <RepeatNode.h>


Public Member Functions | |
| RepeatNode (int repeats) | |
| BEHAVIOR_STATUS | execute (void *agent) |
| This method is invoked by the node's parent when the node should be run. More... | |
| void | init (void *agent) |
| This method will be invoked before the node is executed for the first time. More... | |
Public Member Functions inherited from BehaviorTree::BehaviorTreeDecoratorNode | |
| BehaviorTreeDecoratorNode () | |
| virtual | ~BehaviorTreeDecoratorNode () |
| virtual BehaviorTreeNode * | setChild (BehaviorTreeNode *node) |
| Sets the child node of this node. More... | |
Public Member Functions inherited from BehaviorTree::BehaviorTreeNode | |
| virtual | ~BehaviorTreeNode () |
Public Attributes | |
| int | count |
| int | target |
Public Attributes inherited from BehaviorTree::BehaviorTreeDecoratorNode | |
| BehaviorTreeNode * | child |
| This node's child node. More... | |
A node that repeats its child a specified number of times.
If the child returns BT_FAILURE, RepeatNode will also return BT_FAILURE. However, if the child returns BT_SUCCESS and it hasn't completed the specified number of repetitions, RepeatNode will restart it and continue returning BT_RUNNING.
| RepeatNode::RepeatNode | ( | int | repeats | ) |
| repeats | The number of times to repeat. An argument of -1 indicates the node should repeat indefinitely. Other negative numbers have undefined behavior |
|
virtual |
This method is invoked by the node's parent when the node should be run.
Implements BehaviorTree::BehaviorTreeDecoratorNode.
|
virtual |
This method will be invoked before the node is executed for the first time.
Implements BehaviorTree::BehaviorTreeDecoratorNode.
| int BehaviorTree::RepeatNode::count |
| int BehaviorTree::RepeatNode::target |
1.8.3.1