#include <callable_objects.hpp>


Public Types | |
| typedef std::multimap < map_location, map_location > | move_map |
Public Member Functions | |
| attack_map_callable (const ai::formula_ai &ai, const move_map &srcdst, const unit_map &units) | |
Private Member Functions | |
| variant | get_value (const std::string &key) const |
| void | get_inputs (std::vector< game_logic::formula_input > *inputs) const |
| void | collect_possible_attacks (std::vector< variant > &vars, map_location attacker_location, map_location attack_position) const |
Private Attributes | |
| const move_map & | srcdst_ |
| const unit_map & | units_ |
| const ai::formula_ai & | ai_ |
Definition at line 30 of file callable_objects.hpp.
| typedef std::multimap<map_location, map_location> game_logic::attack_map_callable::move_map |
Definition at line 32 of file callable_objects.hpp.
| game_logic::attack_map_callable::attack_map_callable | ( | const ai::formula_ai & | ai, | |
| const move_map & | srcdst, | |||
| const unit_map & | units | |||
| ) | [inline] |
Definition at line 33 of file callable_objects.hpp.
| void game_logic::attack_map_callable::collect_possible_attacks | ( | std::vector< variant > & | vars, | |
| map_location | attacker_location, | |||
| map_location | attack_position | |||
| ) | const [private] |
Definition at line 197 of file callable_objects.cpp.
References ai_, ai::readonly_context_proxy::current_team(), unit_map::end(), unit_map::find(), resources::game_map, get_adjacent_tiles(), team::is_enemy(), and units_.
Referenced by get_value().


| void game_logic::attack_map_callable::get_inputs | ( | std::vector< game_logic::formula_input > * | inputs | ) | const [private, virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 192 of file callable_objects.cpp.
References game_logic::FORMULA_READ_ONLY.
| variant game_logic::attack_map_callable::get_value | ( | const std::string & | key | ) | const [private, virtual] |
Implements game_logic::formula_callable.
Definition at line 171 of file callable_objects.cpp.
References ai_, collect_possible_attacks(), unit_map::count(), unit_map::end(), ai::side_context_proxy::get_side(), ai::readonly_context_proxy::get_srcdst(), resources::units, and units_.

const ai::formula_ai& game_logic::attack_map_callable::ai_ [private] |
Definition at line 39 of file callable_objects.hpp.
Referenced by collect_possible_attacks(), and get_value().
const move_map& game_logic::attack_map_callable::srcdst_ [private] |
Definition at line 37 of file callable_objects.hpp.
const unit_map& game_logic::attack_map_callable::units_ [private] |
Definition at line 38 of file callable_objects.hpp.
Referenced by collect_possible_attacks(), and get_value().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:20:47 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |