![]() |
Public API Reference |
This is a node of a behaviour tree. More...
#include <tools/behaviourtree.h>
Public Member Functions | |
| virtual bool | AddChild (iBTNode *child)=0 |
| Add a child node to this node. | |
| virtual bool | Execute (const celParams ¶ms)=0 |
| Execute this node. | |
This is a node of a behaviour tree.
A behaviour tree allows to define the behaviour of an entity by combining behaviour nodes into a tree.
There are different type of nodes. The main leaf nodes of the tree are iBTAction nodes that fire actions (eg by sending a message to an entity or a property class). Non-action nodes are used to select the actions that will be executed.
Here is the list of different non-action nodes:
Definition at line 60 of file behaviourtree.h.
| virtual bool iBTNode::AddChild | ( | iBTNode * | child | ) | [pure virtual] |
Add a child node to this node.
| virtual bool iBTNode::Execute | ( | const celParams & | params | ) | [pure virtual] |
Execute this node.
Return whether or not the execution of the node was successful.