Antkeeper  0.0.1
Public Types | Public Member Functions | List of all members
ai::bt::node< T > Struct Template Referenceabstract

Abstract base class for behavior tree nodes. More...

#include <node.hpp>

Inheritance diagram for ai::bt::node< T >:
ai::bt::action< T > ai::bt::composite_node< T > ai::bt::condition< T > ai::bt::decorator_node< T > ai::bt::selector< T > ai::bt::sequence< T > ai::bt::inverter< T > ai::bt::repeater< T > ai::bt::succeeder< T >

Public Types

typedef T context_type
 Data type on which nodes operate. More...
 

Public Member Functions

virtual status execute (context_type &context) const =0
 Executes a node's function and returns its status. More...
 

Detailed Description

template<class T>
struct ai::bt::node< T >

Abstract base class for behavior tree nodes.

Template Parameters
TData type on which nodes operate.

Definition at line 34 of file node.hpp.

Member Typedef Documentation

◆ context_type

template<class T >
typedef T ai::bt::node< T >::context_type

Data type on which nodes operate.

Definition at line 37 of file node.hpp.

Member Function Documentation

◆ execute()

template<class T >
virtual status ai::bt::node< T >::execute ( context_type context) const
pure virtual

Executes a node's function and returns its status.

Parameters
contextContext data on which the node will operate.

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