Qualia  0.2
Public Member Functions | Public Attributes | List of all members
BehaviorTree::BehaviorTreeInternalNode Class Referenceabstract

Abstract base class for Behavior Tree nodes with children. More...

#include <BehaviorTreeBase.h>

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

Public Member Functions

 BehaviorTreeInternalNode ()
 
virtual ~BehaviorTreeInternalNode ()
 
virtual BEHAVIOR_STATUS execute (void *agent)=0
 This method is invoked by the node's parent when the node should be run. More...
 
virtual void init (void *object)=0
 This method will be invoked before the node is executed for the first time. More...
 
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

BehaviorTreeNode ** children
 This node's children nodes. More...
 
uint8_t nChildren
 The number of children of this node. More...
 

Detailed Description

Abstract base class for Behavior Tree nodes with children.

Constructor & Destructor Documentation

BehaviorTree::BehaviorTreeInternalNode::BehaviorTreeInternalNode ( )
BehaviorTree::BehaviorTreeInternalNode::~BehaviorTreeInternalNode ( )
virtual

Member Function Documentation

BehaviorTreeNode * BehaviorTree::BehaviorTreeInternalNode::_setChildren ( BehaviorTreeNode node,
va_list  nodeList 
)
virtual

Helper method for setChildren().

Adds a child to the node. Deprecated: use setChildren() method instead.

Deprecated:
virtual BEHAVIOR_STATUS BehaviorTree::BehaviorTreeInternalNode::execute ( void *  agent)
pure virtual

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

Implements BehaviorTree::BehaviorTreeNode.

Implemented in BehaviorTree::ProbabilityNode, BehaviorTree::SequentialNode, BehaviorTree::PriorityNode, and BehaviorTree::ParallelNode.

virtual void BehaviorTree::BehaviorTreeInternalNode::init ( void *  agent)
pure virtual

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

Implements BehaviorTree::BehaviorTreeNode.

Implemented in BehaviorTree::ProbabilityNode, BehaviorTree::PriorityNode, BehaviorTree::SequentialNode, and BehaviorTree::ParallelNode.

BehaviorTreeNode * BehaviorTree::BehaviorTreeInternalNode::setChildren ( BehaviorTreeNode node,
  ... 
)
virtual

Sets the children nodes of this node. Adds children to node. The method will add all arguments (read as BehaviorTreeNode*) until NULL is reached.

Example use:

node->setChildren(child1, child2, child3, NULL);

Reimplemented in BehaviorTree::ProbabilityNode.

Member Data Documentation

BehaviorTreeNode** BehaviorTree::BehaviorTreeInternalNode::children

This node's children nodes.

uint8_t BehaviorTree::BehaviorTreeInternalNode::nChildren

The number of children of this node.


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