AI Toolkit
Loading...
Searching...
No Matches
aitoolkit::utility::evaluator< T > Class Template Reference

Evaluate a set of actions and apply the best one. More...

#include <utility.hpp>

Public Member Functions

 evaluator (std::vector< action_ptr< T > > actions)
 Construct an evaluator from a list of actions.
 
void run (T &blackboard) const
 Find the best action and apply it to the blackboard.
 

Detailed Description

template<typename T>
class aitoolkit::utility::evaluator< T >

Evaluate a set of actions and apply the best one.