Public API Reference

iBTNode Struct Reference

This is a node of a behaviour tree. More...

#include <tools/behaviourtree.h>

Inheritance diagram for iBTNode:

List of all members.

Public Member Functions

virtual bool AddChild (iBTNode *child)=0
 Add a child node to this node.
virtual bool Execute (const celParams &params)=0
 Execute this node.

Detailed Description

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.

Member Function Documentation

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.

The documentation for this struct was generated from the following file:

Generated for CEL: Crystal Entity Layer 2.0 by doxygen 1.6.1