Qualia  0.2
Public Member Functions | Public Attributes | List of all members
BehaviorTree::PriorityNode Class Reference

Executes behaviors in priority order until one of them is successful. More...

#include <PriorityNode.h>

Inheritance diagram for BehaviorTree::PriorityNode:
Inheritance graph
[legend]
Collaboration diagram for BehaviorTree::PriorityNode:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from BehaviorTree::BehaviorTreeInternalNode
 BehaviorTreeInternalNode ()
 
virtual ~BehaviorTreeInternalNode ()
 
virtual BehaviorTreeNodesetChildren (BehaviorTreeNode *node,...)
 
virtual BehaviorTreeNode_setChildren (BehaviorTreeNode *node, va_list nodeList)
 Helper method for setChildren(). More...
 
- Public Member Functions inherited from BehaviorTree::BehaviorTreeNode
virtual ~BehaviorTreeNode ()
 

Public Attributes

int currentPosition
 
TRAVERSAL_POLICY traversalPolicy
 
- Public Attributes inherited from BehaviorTree::BehaviorTreeInternalNode
BehaviorTreeNode ** children
 This node's children nodes. More...
 
uint8_t nChildren
 The number of children of this node. More...
 

Detailed Description

Executes behaviors in priority order until one of them is successful.

Attempts to execute children in the order they were added. 

Constructor & Destructor Documentation

PriorityNode::PriorityNode ( TRAVERSAL_POLICY  traversalPolicy = RESTART)

Member Function Documentation

BEHAVIOR_STATUS PriorityNode::execute ( void *  agent)
virtual

This method is invoked by the node's parent when the node should be run.

Implements BehaviorTree::BehaviorTreeInternalNode.

void PriorityNode::init ( void *  agent)
virtual

This method will be invoked before the node is executed for the first time.

Implements BehaviorTree::BehaviorTreeInternalNode.

Member Data Documentation

int BehaviorTree::PriorityNode::currentPosition
TRAVERSAL_POLICY BehaviorTree::PriorityNode::traversalPolicy

The documentation for this class was generated from the following files: