Qualia
0.2
|
Executes behaviors in priority order until one of them is successful. More...
#include <PriorityNode.h>
Public Member Functions | |
BEHAVIOR_STATUS | execute (void *agent) |
This method is invoked by the node's parent when the node should be run. More... | |
PriorityNode (TRAVERSAL_POLICY traversalPolicy=RESTART) | |
void | init (void *agent) |
This method will be invoked before the node is executed for the first time. More... | |
![]() | |
BehaviorTreeInternalNode () | |
virtual | ~BehaviorTreeInternalNode () |
virtual BehaviorTreeNode * | setChildren (BehaviorTreeNode *node,...) |
virtual BehaviorTreeNode * | _setChildren (BehaviorTreeNode *node, va_list nodeList) |
Helper method for setChildren(). More... | |
![]() | |
virtual | ~BehaviorTreeNode () |
Public Attributes | |
int | currentPosition |
TRAVERSAL_POLICY | traversalPolicy |
![]() | |
BehaviorTreeNode ** | children |
This node's children nodes. More... | |
uint8_t | nChildren |
The number of children of this node. More... | |
Executes behaviors in priority order until one of them is successful.
Attempts to execute children in the order they were added.
PriorityNode::PriorityNode | ( | TRAVERSAL_POLICY | traversalPolicy = RESTART | ) |
|
virtual |
This method is invoked by the node's parent when the node should be run.
Implements BehaviorTree::BehaviorTreeInternalNode.
|
virtual |
This method will be invoked before the node is executed for the first time.
Implements BehaviorTree::BehaviorTreeInternalNode.
int BehaviorTree::PriorityNode::currentPosition |
TRAVERSAL_POLICY BehaviorTree::PriorityNode::traversalPolicy |