|
AI Toolkit
|
Task node, will execute the callback and return the result. More...
#include <behtree.hpp>
Public Types | |
| using | callback_type = std::function<execution_state(T&)> |
Public Member Functions | |
| task (callback_type fn) | |
| 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 |
Task node, will execute the callback and return the result.
|
inlineoverridevirtual |
Implements aitoolkit::bt::node< T >.