Qualia
0.2
|
Limit the number of times this tree section can execute before it becomes blocked off. More...
#include <CountLimitNode.h>
Public Member Functions | |
CountLimitNode (int limit, bool allow_reinitialize=true) | |
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... | |
![]() | |
BehaviorTreeDecoratorNode () | |
virtual | ~BehaviorTreeDecoratorNode () |
virtual BehaviorTreeNode * | setChild (BehaviorTreeNode *node) |
Sets the child node of this node. More... | |
![]() | |
virtual | ~BehaviorTreeNode () |
Private Member Functions | |
void | initChild (void *agent) |
Private Attributes | |
int | limit |
int | current_rep |
bool | allow_reinitialize |
Additional Inherited Members | |
![]() | |
BehaviorTreeNode * | child |
This node's child node. More... | |
Limit the number of times this tree section can execute before it becomes blocked off.
CountLimitNode::CountLimitNode | ( | int | limit, |
bool | allow_reinitialize = true |
||
) |
limit | The number of times the tree section can execute before it becomes blocked off. |
allow_reinitialize | If true, when this node's init method is called, the restriction is lifted. Otherwise, the restriction is never lifted. |
|
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.
|
private |
|
private |
|
private |
|
private |