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

Abstract base class for Behavior Tree nodes with exactly one child. More...

#include <BehaviorTreeBase.h>

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

Public Member Functions

 BehaviorTreeDecoratorNode ()
 
virtual ~BehaviorTreeDecoratorNode ()
 
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 BehaviorTreeNodesetChild (BehaviorTreeNode *node)
 Sets the child node of this node. More...
 
- Public Member Functions inherited from BehaviorTree::BehaviorTreeNode
virtual ~BehaviorTreeNode ()
 

Public Attributes

BehaviorTreeNodechild
 This node's child node. More...
 

Detailed Description

Abstract base class for Behavior Tree nodes with exactly one child.

Constructor & Destructor Documentation

BehaviorTree::BehaviorTreeDecoratorNode::BehaviorTreeDecoratorNode ( )
BehaviorTree::BehaviorTreeDecoratorNode::~BehaviorTreeDecoratorNode ( )
virtual

Member Function Documentation

virtual BEHAVIOR_STATUS BehaviorTree::BehaviorTreeDecoratorNode::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::CountLimitNode, and BehaviorTree::RepeatNode.

virtual void BehaviorTree::BehaviorTreeDecoratorNode::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::CountLimitNode, and BehaviorTree::RepeatNode.

BehaviorTreeNode * BehaviorTree::BehaviorTreeDecoratorNode::setChild ( BehaviorTreeNode node)
virtual

Sets the child node of this node.

Member Data Documentation

BehaviorTreeNode* BehaviorTree::BehaviorTreeDecoratorNode::child

This node's child node.


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