#include <candidates.hpp>
Public Member Functions | |
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 | |
int | execute_formula (const const_formula_ptr &formula, const formula_callable &callable, const ai::formula_ai *ai) |
Protected Attributes | |
std::string | name_ |
std::string | type_ |
const_formula_ptr | eval_ |
const_formula_ptr | action_ |
int | score_ |
Definition at line 40 of file candidates.hpp.
wfl::base_candidate_action::base_candidate_action | ( | const std::string & | name, |
const std::string & | type, | ||
const config & | cfg, | ||
function_symbol_table * | function_table | ||
) |
Definition at line 32 of file candidates.cpp.
|
inlinevirtual |
Definition at line 44 of file candidates.hpp.
|
inlinevirtual |
Reimplemented in wfl::attack_candidate_action, and wfl::move_candidate_action.
Definition at line 47 of file candidates.hpp.
|
protected |
Definition at line 42 of file candidates.cpp.
References e, ERR_AI, and wfl::formula::evaluate().
Referenced by wfl::move_candidate_action::evaluate(), and wfl::attack_candidate_action::evaluate().
|
inline |
Definition at line 55 of file candidates.hpp.
References action_.
|
inline |
Definition at line 57 of file candidates.hpp.
References name_.
Referenced by wfl::move_candidate_action::evaluate(), and wfl::attack_candidate_action::evaluate().
|
inline |
Definition at line 53 of file candidates.hpp.
References score_.
|
inline |
Definition at line 58 of file candidates.hpp.
References type_.
|
inlinevirtual |
Reimplemented in wfl::attack_candidate_action, and wfl::move_candidate_action.
Definition at line 50 of file candidates.hpp.
|
protected |
Definition at line 67 of file candidates.hpp.
Referenced by get_action().
|
protected |
Definition at line 66 of file candidates.hpp.
Referenced by wfl::move_candidate_action::evaluate(), and wfl::attack_candidate_action::evaluate().
|
protected |
Definition at line 64 of file candidates.hpp.
Referenced by get_name().
|
protected |
Definition at line 68 of file candidates.hpp.
Referenced by wfl::move_candidate_action::evaluate(), wfl::attack_candidate_action::evaluate(), and get_score().
|
protected |
Definition at line 65 of file candidates.hpp.
Referenced by get_type().