Antkeeper  0.0.1
Public Member Functions | List of all members
ai::bt::selector< T > Struct Template Reference

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...

#include <node.hpp>

Inheritance diagram for ai::bt::selector< T >:
ai::bt::composite_node< T > ai::bt::node< T >

Public Member Functions

virtual status execute (node< T >::context_type &context) const final
 
- Public Member Functions inherited from ai::bt::node< T >
virtual status execute (context_type &context) const =0
 Executes a node's function and returns its status. More...
 

Additional Inherited Members

- Public Types inherited from ai::bt::node< T >
typedef T context_type
 Data type on which nodes operate. More...
 
- Public Attributes inherited from ai::bt::composite_node< T >
std::list< node< T > * > children
 

Detailed Description

template<class T>
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.

Definition at line 115 of file node.hpp.

Member Function Documentation

◆ execute()

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

Definition at line 172 of file node.hpp.


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