#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 (game_logic::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 game_logic::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 41 of file candidates.hpp.
game_logic::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 31 of file candidates.cpp.
|
inlinevirtual |
Definition at line 45 of file candidates.hpp.
|
inlinevirtual |
Reimplemented in game_logic::attack_candidate_action, and game_logic::move_candidate_action.
Definition at line 48 of file candidates.hpp.
|
protected |
Definition at line 41 of file candidates.cpp.
References e, ERR_AI, game_logic::formula::evaluate(), ai::formula_ai::handle_exception(), and game::error::message.
Referenced by game_logic::move_candidate_action::evaluate(), and game_logic::attack_candidate_action::evaluate().
|
inline |
Definition at line 57 of file candidates.hpp.
References action_.
|
inline |
Definition at line 59 of file candidates.hpp.
References name_.
Referenced by game_logic::move_candidate_action::evaluate(), and game_logic::attack_candidate_action::evaluate().
|
inline |
Definition at line 55 of file candidates.hpp.
References score_.
|
inline |
Definition at line 60 of file candidates.hpp.
References type_.
|
inlinevirtual |
Reimplemented in game_logic::attack_candidate_action, and game_logic::move_candidate_action.
Definition at line 51 of file candidates.hpp.
|
protected |
Definition at line 69 of file candidates.hpp.
Referenced by get_action().
|
protected |
Definition at line 68 of file candidates.hpp.
Referenced by game_logic::move_candidate_action::evaluate(), and game_logic::attack_candidate_action::evaluate().
|
protected |
Definition at line 66 of file candidates.hpp.
Referenced by get_name().
|
protected |
Definition at line 70 of file candidates.hpp.
Referenced by game_logic::move_candidate_action::evaluate(), game_logic::attack_candidate_action::evaluate(), and get_score().
|
protected |
Definition at line 67 of file candidates.hpp.
Referenced by get_type().