#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) |
Protected Attributes | |
| variant | my_unit_ |
| variant | enemy_unit_ |
Definition at line 153 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 195 of file candidates.cpp.
| void game_logic::attack_candidate_action::evaluate | ( | ai::formula_ai * | ai, | |
| unit_map & | units | |||
| ) | [virtual] |
Reimplemented from game_logic::base_candidate_action.
Definition at line 203 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(), 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(), team::is_enemy(), game::error::message, my_unit_, variant::num_elements(), and game_logic::base_candidate_action::score_.

| void game_logic::attack_candidate_action::update_callable_map | ( | game_logic::map_formula_callable & | callable | ) | [virtual] |
Reimplemented from game_logic::base_candidate_action.
Definition at line 298 of file candidates.cpp.
References game_logic::map_formula_callable::add(), enemy_unit_, and my_unit_.

Definition at line 162 of file candidates.hpp.
Referenced by evaluate(), and update_callable_map().
variant game_logic::attack_candidate_action::my_unit_ [protected] |
Definition at line 161 of file candidates.hpp.
Referenced by evaluate(), and update_callable_map().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:20:50 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |