Antkeeper  0.0.1
Classes | Namespaces | Typedefs
node.hpp File Reference
#include <engine/ai/bt/status.hpp>

Go to the source code of this file.

Classes

struct  ai::bt::node< T >
 Abstract base class for behavior tree nodes. More...
 
struct  ai::bt::decorator_node< T >
 A node with exactly one child. More...
 
struct  ai::bt::composite_node< T >
 A node that can have one or more children. More...
 
struct  ai::bt::action< T >
 Executes a function on a context and returns the status. More...
 
struct  ai::bt::condition< T >
 Evaluates a boolean condition (predicate) and returns either status::success or status::failure. More...
 
struct  ai::bt::inverter< T >
 Executes a child node and returns its inverted status. If the child returns status::success, then status::failure will be returned. Otherwise if the child returns status::failure, then status::success will be returned. More...
 
struct  ai::bt::repeater< T >
 Attempts to execute a child node n times or until the child fails. More...
 
struct  ai::bt::succeeder< T >
 Executes a child node and returns status::success regardless of the child node status. More...
 
struct  ai::bt::sequence< T >
 Attempts to execute each child node sequentially until one fails. If all children are executed successfully, status::success will be returned. Otherwise if any children fail, status::failure will be returned. More...
 
struct  ai::bt::selector< T >
 Attempts to execute each child node sequentially until one succeeds. If a child succeeds, status::success will be returned. Otherwise if all children fail, status::failure will be returned. More...
 

Namespaces

 ai
 Artificial intelligence (AI)
 
 ai::bt
 Behavior tree (BT)
 

Typedefs

template<class T >
using ai::bt::leaf_node = node< T >
 Behavior tree node with no children. More...