AI Toolkit
Loading...
Searching...
No Matches
aitoolkit::bt::sel< T > Class Template Referencefinal

Selector node, will execute all children in order until one succeeds. More...

#include <behtree.hpp>

Inheritance diagram for aitoolkit::bt::sel< T >:
aitoolkit::bt::node< T >

Public Member Functions

 sel (std::vector< node_ptr< T > > children)
 
virtual execution_state evaluate (T &blackboard) const override
 
- Public Member Functions inherited from aitoolkit::bt::node< T >
 node (const node &)=delete
 
 node (node &&other)
 

Additional Inherited Members

- Protected Attributes inherited from aitoolkit::bt::node< T >
std::vector< std::unique_ptr< node< T > > > m_children
 

Detailed Description

template<class T>
class aitoolkit::bt::sel< T >

Selector node, will execute all children in order until one succeeds.

Member Function Documentation

◆ evaluate()

template<class T >
virtual execution_state aitoolkit::bt::sel< T >::evaluate ( T & blackboard) const
inlineoverridevirtual