#include <candidates.hpp>

Public Member Functions | |
| attack_candidate_action (const std::string &name, const std::string &type, const config &cfg, function_symbol_table *function_table) | |
| virtual void | evaluate (ai::formula_ai *ai, unit_map &units) |
| virtual void | update_callable_map (game_logic::map_formula_callable &callable) |
Public Member Functions inherited from game_logic::candidate_action_with_filters | |
| 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 game_logic::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 () |
| int | get_score () const |
| const_formula_ptr & | get_action () |
| const std::string & | get_name () const |
| const std::string & | get_type () const |
Protected Attributes | |
| variant | my_unit_ |
| variant | enemy_unit_ |
Protected Attributes inherited from game_logic::candidate_action_with_filters | |
| game_logic::candidate_action_filters | filter_map_ |
Protected Attributes inherited from game_logic::base_candidate_action | |
| std::string | name_ |
| std::string | type_ |
| const_formula_ptr | eval_ |
| const_formula_ptr | action_ |
| int | score_ |
Additional Inherited Members | |
Protected Member Functions inherited from game_logic::candidate_action_with_filters | |
| variant | do_filtering (ai::formula_ai *ai, variant &input, game_logic::const_formula_ptr formula) |
Protected Member Functions inherited from game_logic::base_candidate_action | |
| int | execute_formula (const const_formula_ptr &formula, const game_logic::formula_callable &callable, const ai::formula_ai *ai) |
Definition at line 95 of file candidates.hpp.
| game_logic::attack_candidate_action::attack_candidate_action | ( | const std::string & | name, |
| const std::string & | type, | ||
| const config & | cfg, | ||
| function_symbol_table * | function_table | ||
| ) |
Definition at line 143 of file candidates.cpp.
|
virtual |
Reimplemented from game_logic::base_candidate_action.
Definition at line 151 of file candidates.cpp.
References game_logic::map_formula_callable::add(), reference_counted_object::add_ref(), variant::begin(), unit_map::begin(), ai::formula_ai::can_reach_unit(), ai::readonly_context_proxy::current_team(), game_logic::candidate_action_with_filters::do_filtering(), e, variant::end(), unit_map::end(), enemy_unit_, ERR_AI, game_logic::base_candidate_action::eval_, game_logic::base_candidate_action::execute_formula(), game_logic::candidate_action_with_filters::filter_map_, unit_callable::get_location(), game_logic::base_candidate_action::get_name(), ai::side_context_proxy::get_side(), ai::formula_ai::handle_exception(), i, team::is_enemy(), game::error::message, my_unit_, variant::num_elements(), and game_logic::base_candidate_action::score_.
|
virtual |
Reimplemented from game_logic::base_candidate_action.
Definition at line 246 of file candidates.cpp.
References game_logic::map_formula_callable::add(), enemy_unit_, and my_unit_.
|
protected |
Definition at line 104 of file candidates.hpp.
Referenced by evaluate(), and update_callable_map().
|
protected |
Definition at line 103 of file candidates.hpp.
Referenced by evaluate(), and update_callable_map().
1.8.8