#include <candidates.hpp>
Public Member Functions | |
| candidate_action_with_filters (const std::string &name, const std::string &type, const config &cfg, function_symbol_table *function_table) | |
Public Member Functions inherited from wfl::base_candidate_action | |
| base_candidate_action (const std::string &name, const std::string &type, const config &cfg, function_symbol_table *function_table) | |
| virtual | ~base_candidate_action () |
| virtual void | evaluate (ai::formula_ai *, unit_map &) |
| virtual void | update_callable_map (map_formula_callable &) |
| int | get_score () const |
| const_formula_ptr & | get_action () |
| const std::string & | get_name () const |
| const std::string & | get_type () const |
Protected Member Functions | |
| variant | do_filtering (ai::formula_ai *ai, variant &input, const const_formula_ptr &formula) |
Protected Member Functions inherited from wfl::base_candidate_action | |
| int | execute_formula (const const_formula_ptr &formula, const formula_callable &callable, const ai::formula_ai *ai) |
Protected Attributes | |
| candidate_action_filters | filter_map_ |
Protected Attributes inherited from wfl::base_candidate_action | |
| std::string | name_ |
| std::string | type_ |
| const_formula_ptr | eval_ |
| const_formula_ptr | action_ |
| int | score_ |
Definition at line 71 of file candidates.hpp.
| wfl::candidate_action_with_filters::candidate_action_with_filters | ( | const std::string & | name, |
| const std::string & | type, | ||
| const config & | cfg, | ||
| function_symbol_table * | function_table | ||
| ) |
Definition at line 59 of file candidates.cpp.
References cfg, filter_map_, and config::optional_child().
|
protected |
Definition at line 78 of file candidates.cpp.
References wfl::map_formula_callable::add(), and wfl::formula::evaluate().
Referenced by wfl::move_candidate_action::evaluate(), and wfl::attack_candidate_action::evaluate().
|
protected |
Definition at line 77 of file candidates.hpp.
Referenced by candidate_action_with_filters(), wfl::move_candidate_action::evaluate(), and wfl::attack_candidate_action::evaluate().