#include <contexts.hpp>


Public Member Functions | |
| readonly_context_proxy () | |
| virtual | ~readonly_context_proxy () |
| void | init_readonly_context_proxy (readonly_context &target) |
| virtual readonly_context & | get_readonly_context () |
| virtual void | on_readonly_context_create () |
| virtual const team & | current_team () const |
| virtual void | diagnostic (const std::string &msg) |
| virtual void | log_message (const std::string &msg) |
| virtual attack_result_ptr | check_attack_action (const map_location &attacker_loc, const map_location &defender_loc, int attacker_weapon) |
| virtual move_result_ptr | check_move_action (const map_location &from, const map_location &to, bool remove_movement=true) |
| virtual recall_result_ptr | check_recall_action (const std::string &id, const map_location &where=map_location::null_location, const map_location &from=map_location::null_location) |
| virtual recruit_result_ptr | check_recruit_action (const std::string &unit_name, const map_location &where=map_location::null_location, const map_location &from=map_location::null_location) |
| virtual stopunit_result_ptr | check_stopunit_action (const map_location &unit_location, bool remove_movement=true, bool remove_attacks=false) |
| virtual void | calculate_possible_moves (std::map< map_location, pathfind::paths > &possible_moves, move_map &srcdst, move_map &dstsrc, bool enemy, bool assume_full_movement=false, const terrain_filter *remove_destinations=NULL) const |
| virtual void | calculate_moves (const unit_map &units, std::map< map_location, pathfind::paths > &possible_moves, move_map &srcdst, move_map &dstsrc, bool enemy, bool assume_full_movement=false, const terrain_filter *remove_destinations=NULL, bool see_all=false) const |
| virtual const game_info & | get_info () const |
| virtual void | raise_user_interact () const |
| virtual int | get_recursion_count () const |
| Get the value of the recursion counter. | |
| defensive_position const & | best_defensive_position (const map_location &unit, const move_map &dstsrc, const move_map &srcdst, const move_map &enemy_dstsrc) const |
| virtual std::map< map_location, defensive_position > & | defensive_position_cache () const |
| virtual double | get_aggression () const |
| virtual int | get_attack_depth () const |
| virtual const aspect_map & | get_aspects () const |
| virtual aspect_map & | get_aspects () |
| virtual void | add_aspects (std::vector< aspect_ptr > &aspects) |
| virtual void | add_facet (const std::string &id, const config &cfg) const |
| virtual const attacks_vector & | get_attacks () const |
| virtual const variant & | get_attacks_as_variant () const |
| virtual const terrain_filter & | get_avoid () const |
| virtual double | get_caution () const |
| virtual const move_map & | get_dstsrc () const |
| virtual const move_map & | get_enemy_dstsrc () const |
| virtual const moves_map & | get_enemy_possible_moves () const |
| virtual const move_map & | get_enemy_srcdst () const |
| virtual engine_ptr | get_engine_by_cfg (const config &cfg) |
| virtual const std::vector < engine_ptr > & | get_engines () const |
| virtual std::vector< engine_ptr > & | get_engines () |
| virtual std::string | get_grouping () const |
| virtual const std::vector < goal_ptr > & | get_goals () const |
| virtual std::vector< goal_ptr > & | get_goals () |
| virtual double | get_leader_aggression () const |
| virtual config | get_leader_goal () const |
| virtual double | get_leader_value () const |
| virtual double | get_number_of_possible_recruits_to_force_recruit () const |
| virtual bool | get_passive_leader () const |
| virtual bool | get_passive_leader_shares_keep () const |
| virtual const moves_map & | get_possible_moves () const |
| virtual double | power_projection (const map_location &loc, const move_map &dstsrc) const |
| virtual const std::vector< unit > & | get_recall_list () const |
| virtual stage_ptr | get_recruitment (ai_context &context) const |
| virtual bool | get_recruitment_ignore_bad_combat () const |
| virtual bool | get_recruitment_ignore_bad_movement () const |
| virtual const std::vector < std::string > | get_recruitment_pattern () const |
| virtual const move_map & | get_srcdst () const |
| virtual double | get_scout_village_targeting () const |
| virtual bool | get_simple_targeting () const |
| virtual bool | get_support_villages () const |
| virtual double | get_village_value () const |
| virtual int | get_villages_per_scout () const |
| virtual bool | is_active (const std::string &time_of_day, const std::string &turns) const |
| virtual bool | is_dst_src_valid_lua () const |
| virtual bool | is_dst_src_enemy_valid_lua () const |
| virtual bool | is_src_dst_valid_lua () const |
| virtual bool | is_src_dst_enemy_valid_lua () const |
| virtual void | invalidate_defensive_position_cache () const |
| virtual void | invalidate_move_maps () const |
| virtual void | invalidate_keeps_cache () const |
| virtual const std::set < map_location > & | keeps () const |
| virtual bool | leader_can_reach_keep () const |
| virtual const map_location & | nearest_keep (const map_location &loc) const |
| virtual void | recalculate_move_maps () const |
| virtual void | recalculate_move_maps_enemy () const |
| virtual void | set_dst_src_valid_lua () |
| virtual void | set_dst_src_enemy_valid_lua () |
| virtual void | set_src_dst_valid_lua () |
| virtual void | set_src_dst_enemy_valid_lua () |
| virtual const map_location & | suitable_keep (const map_location &leader_location, const pathfind::paths &leader_paths) |
| virtual config | to_readonly_context_config () const |
| virtual std::map< std::pair < map_location, const unit_type * >, std::pair < battle_context_unit_stats, battle_context_unit_stats > > & | unit_stats_cache () const |
Private Attributes | |
| readonly_context * | target_ |
Definition at line 488 of file contexts.hpp.
| ai::readonly_context_proxy::readonly_context_proxy | ( | ) | [inline] |
Definition at line 490 of file contexts.hpp.
| virtual ai::readonly_context_proxy::~readonly_context_proxy | ( | ) | [inline, virtual] |
Definition at line 495 of file contexts.hpp.
| virtual void ai::readonly_context_proxy::add_aspects | ( | std::vector< aspect_ptr > & | aspects | ) | [inline, virtual] |
Definition at line 630 of file contexts.hpp.
References ai::readonly_context::add_aspects(), and target_.

| virtual void ai::readonly_context_proxy::add_facet | ( | const std::string & | id, | |
| const config & | cfg | |||
| ) | const [inline, virtual] |
Definition at line 636 of file contexts.hpp.
References ai::readonly_context::add_facet(), and target_.

| defensive_position const& ai::readonly_context_proxy::best_defensive_position | ( | const map_location & | unit, | |
| const move_map & | dstsrc, | |||
| const move_map & | srcdst, | |||
| const move_map & | enemy_dstsrc | |||
| ) | const [inline] |
Definition at line 593 of file contexts.hpp.
References ai::readonly_context::best_defensive_position(), and target_.
Referenced by ai::testing_ai_default::testing_move_to_targets_phase::should_retreat(), and ai::testing_ai_default::retreat_phase::should_retreat().


| virtual void ai::readonly_context_proxy::calculate_moves | ( | const unit_map & | units, | |
| std::map< map_location, pathfind::paths > & | possible_moves, | |||
| move_map & | srcdst, | |||
| move_map & | dstsrc, | |||
| bool | enemy, | |||
| bool | assume_full_movement = false, |
|||
| const terrain_filter * | remove_destinations = NULL, |
|||
| bool | see_all = false | |||
| ) | const [inline, virtual] |
Definition at line 567 of file contexts.hpp.
References ai::readonly_context::calculate_moves(), and target_.
Referenced by ai::testing_ai_default::passive_leader_shares_keep_phase::execute().


| virtual void ai::readonly_context_proxy::calculate_possible_moves | ( | std::map< map_location, pathfind::paths > & | possible_moves, | |
| move_map & | srcdst, | |||
| move_map & | dstsrc, | |||
| bool | enemy, | |||
| bool | assume_full_movement = false, |
|||
| const terrain_filter * | remove_destinations = NULL | |||
| ) | const [inline, virtual] |
Definition at line 559 of file contexts.hpp.
References ai::readonly_context::calculate_possible_moves(), and target_.
Referenced by ai::testing_ai_default::aspect_attacks::analyze_targets(), ai::testing_ai_default::testing_move_to_targets_phase::choose_move(), ai::testing_ai_default::retreat_phase::evaluate(), ai::default_ai_context_impl::find_targets(), and ai::testing_ai_default::testing_move_to_targets_phase::move_group().


| virtual attack_result_ptr ai::readonly_context_proxy::check_attack_action | ( | const map_location & | attacker_loc, | |
| const map_location & | defender_loc, | |||
| int | attacker_weapon | |||
| ) | [inline, virtual] |
Definition at line 530 of file contexts.hpp.
References ai::readonly_context::check_attack_action(), and target_.
Referenced by ai::testing_ai_default::combat_phase::execute().


| virtual move_result_ptr ai::readonly_context_proxy::check_move_action | ( | const map_location & | from, | |
| const map_location & | to, | |||
| bool | remove_movement = true | |||
| ) | [inline, virtual] |
Definition at line 535 of file contexts.hpp.
References ai::readonly_context::check_move_action(), and target_.
Referenced by ai::testing_ai_default::simple_move_and_targeting_phase::evaluate(), ai::testing_ai_default::retreat_phase::evaluate(), ai::testing_ai_default::get_healing_phase::evaluate(), ai::testing_ai_default::move_leader_to_keep_phase::evaluate(), ai::testing_ai_default::move_leader_to_goals_phase::evaluate(), ai::testing_ai_default::goto_phase::evaluate(), ai::testing_ai_default::passive_leader_shares_keep_phase::execute(), and ai::testing_ai_default::get_villages_phase::find_villages().


| virtual recall_result_ptr ai::readonly_context_proxy::check_recall_action | ( | const std::string & | id, | |
| const map_location & | where = map_location::null_location, |
|||
| const map_location & | from = map_location::null_location | |||
| ) | [inline, virtual] |
Definition at line 541 of file contexts.hpp.
References ai::readonly_context::check_recall_action(), and target_.
Referenced by ai::ai_default_recruitment_stage::do_play_stage().


| virtual recruit_result_ptr ai::readonly_context_proxy::check_recruit_action | ( | const std::string & | unit_name, | |
| const map_location & | where = map_location::null_location, |
|||
| const map_location & | from = map_location::null_location | |||
| ) | [inline, virtual] |
Definition at line 548 of file contexts.hpp.
References ai::readonly_context::check_recruit_action(), and target_.
Referenced by ai::testing_ai_default::testing_recruitment_phase::do_recruit(), and ai::ai_default_recruitment_stage::recruit_usage().


| virtual stopunit_result_ptr ai::readonly_context_proxy::check_stopunit_action | ( | const map_location & | unit_location, | |
| bool | remove_movement = true, |
|||
| bool | remove_attacks = false | |||
| ) | [inline, virtual] |
Definition at line 554 of file contexts.hpp.
References ai::readonly_context::check_stopunit_action(), and target_.

| virtual const team& ai::readonly_context_proxy::current_team | ( | ) | const [inline, virtual] |
Definition at line 515 of file contexts.hpp.
References ai::readonly_context::current_team(), and target_.
Referenced by ai::testing_ai_default::testing_move_to_targets_phase::access_points(), ai::protect_goal::add_targets(), ai::testing_ai_default::recruitment_phase::analyze_potential_recruit_combat(), ai::ai_default_recruitment_stage::analyze_potential_recruit_combat(), ai::ai_default_recruitment_stage::analyze_potential_recruit_movements(), ai::ai_default_recruitment_stage::analyze_recall_list(), ai::testing_ai_default::aspect_attacks::analyze_targets(), ai::testing_ai_default::testing_move_to_targets_phase::choose_move(), game_logic::attack_map_callable::collect_possible_attacks(), ai::default_ai_context_impl::count_free_hexes_in_castle(), ai::testing_ai_default::passive_leader_shares_keep_phase::evaluate(), ai::testing_ai_default::simple_move_and_targeting_phase::evaluate(), ai::testing_ai_default::move_leader_to_keep_phase::evaluate(), ai::testing_ai_default::move_leader_to_goals_phase::evaluate(), game_logic::attack_candidate_action::evaluate(), ai::testing_ai_default::get_villages_phase::execute(), ai::default_ai_context_impl::find_targets(), ai::testing_ai_default::get_villages_phase::find_villages(), ai::formula_ai::get_allowed_teleports(), ai::ai_default_recruitment_stage::get_combat_score(), ai::formula_ai::get_value(), ai::testing_ai_default::recruitment_phase::recruit_usage(), ai::ai_default_recruitment_stage::recruit_usage(), and ai::formula_ai::shortest_path_calculator().


| virtual std::map<map_location,defensive_position>& ai::readonly_context_proxy::defensive_position_cache | ( | ) | const [inline, virtual] |
Definition at line 600 of file contexts.hpp.
References ai::readonly_context::defensive_position_cache(), and target_.

| virtual void ai::readonly_context_proxy::diagnostic | ( | const std::string & | msg | ) | [inline, virtual] |
Definition at line 520 of file contexts.hpp.
References ai::readonly_context::diagnostic(), and target_.

| virtual double ai::readonly_context_proxy::get_aggression | ( | ) | const [inline, virtual] |
Definition at line 606 of file contexts.hpp.
References ai::readonly_context::get_aggression(), and target_.
Referenced by ai::testing_ai_default::aspect_attacks::do_attack_analysis(), ai::testing_ai_default::combat_phase::evaluate(), ai::readwrite_context_impl::execute_attack_action(), and ai::formula_ai::get_value().


| virtual const aspect_map& ai::readonly_context_proxy::get_aspects | ( | ) | const [inline, virtual] |
Definition at line 618 of file contexts.hpp.
References ai::readonly_context::get_aspects(), and target_.

| virtual aspect_map& ai::readonly_context_proxy::get_aspects | ( | ) | [inline, virtual] |
Definition at line 624 of file contexts.hpp.
References ai::readonly_context::get_aspects(), and target_.

| virtual int ai::readonly_context_proxy::get_attack_depth | ( | ) | const [inline, virtual] |
Definition at line 612 of file contexts.hpp.
References ai::readonly_context::get_attack_depth(), and target_.
Referenced by ai::formula_ai::get_value().


| virtual const attacks_vector& ai::readonly_context_proxy::get_attacks | ( | ) | const [inline, virtual] |
Definition at line 643 of file contexts.hpp.
References ai::readonly_context::get_attacks(), and target_.
Referenced by ai::testing_ai_default::combat_phase::evaluate().


| virtual const variant& ai::readonly_context_proxy::get_attacks_as_variant | ( | ) | const [inline, virtual] |
Definition at line 650 of file contexts.hpp.
References ai::readonly_context::get_attacks_as_variant(), and target_.
Referenced by ai::formula_ai::get_value().


| virtual const terrain_filter& ai::readonly_context_proxy::get_avoid | ( | ) | const [inline, virtual] |
Definition at line 656 of file contexts.hpp.
References ai::readonly_context::get_avoid(), and target_.
Referenced by ai::testing_ai_default::retreat_phase::evaluate(), and ai::formula_ai::get_value().


| virtual double ai::readonly_context_proxy::get_caution | ( | ) | const [inline, virtual] |
Definition at line 662 of file contexts.hpp.
References ai::readonly_context::get_caution(), and target_.
Referenced by ai::testing_ai_default::testing_move_to_targets_phase::choose_move(), ai::testing_ai_default::retreat_phase::evaluate(), ai::testing_ai_default::move_leader_to_goals_phase::evaluate(), and ai::formula_ai::get_value().


| virtual const move_map& ai::readonly_context_proxy::get_dstsrc | ( | ) | const [inline, virtual] |
Definition at line 668 of file contexts.hpp.
References ai::readonly_context::get_dstsrc(), and target_.
Referenced by ai::testing_ai_default::aspect_attacks::analyze_targets(), ai::testing_ai_default::simple_move_and_targeting_phase::evaluate(), ai::testing_ai_default::retreat_phase::evaluate(), ai::testing_ai_default::get_villages_phase::evaluate(), ai::testing_ai_default::goto_phase::evaluate(), ai::testing_ai_default::testing_move_to_targets_phase::execute(), and ai::formula_ai::get_value().


| virtual const move_map& ai::readonly_context_proxy::get_enemy_dstsrc | ( | ) | const [inline, virtual] |
Definition at line 674 of file contexts.hpp.
References ai::readonly_context::get_enemy_dstsrc(), and target_.
Referenced by ai::testing_ai_default::aspect_attacks::analyze_targets(), ai::testing_ai_default::retreat_phase::evaluate(), ai::testing_ai_default::get_healing_phase::evaluate(), ai::testing_ai_default::get_villages_phase::evaluate(), ai::testing_ai_default::move_leader_to_keep_phase::evaluate(), ai::testing_ai_default::move_leader_to_goals_phase::evaluate(), ai::testing_ai_default::testing_move_to_targets_phase::execute(), ai::testing_ai_default::get_villages_phase::execute(), ai::formula_ai::get_value(), and ai::testing_ai_default::retreat_phase::should_retreat().


| virtual const moves_map& ai::readonly_context_proxy::get_enemy_possible_moves | ( | ) | const [inline, virtual] |
Definition at line 680 of file contexts.hpp.
References ai::readonly_context::get_enemy_possible_moves(), and target_.

| virtual const move_map& ai::readonly_context_proxy::get_enemy_srcdst | ( | ) | const [inline, virtual] |
Definition at line 686 of file contexts.hpp.
References ai::readonly_context::get_enemy_srcdst(), and target_.
Referenced by ai::testing_ai_default::aspect_attacks::analyze_targets(), and ai::formula_ai::get_value().


| virtual engine_ptr ai::readonly_context_proxy::get_engine_by_cfg | ( | const config & | cfg | ) | [inline, virtual] |
Definition at line 692 of file contexts.hpp.
References ai::readonly_context::get_engine_by_cfg(), and target_.

| virtual const std::vector<engine_ptr>& ai::readonly_context_proxy::get_engines | ( | ) | const [inline, virtual] |
Definition at line 698 of file contexts.hpp.
References ai::readonly_context::get_engines(), and target_.

| virtual std::vector<engine_ptr>& ai::readonly_context_proxy::get_engines | ( | ) | [inline, virtual] |
Definition at line 704 of file contexts.hpp.
References ai::readonly_context::get_engines(), and target_.

| virtual const std::vector<goal_ptr>& ai::readonly_context_proxy::get_goals | ( | ) | const [inline, virtual] |
Definition at line 716 of file contexts.hpp.
References ai::readonly_context::get_goals(), and target_.
Referenced by ai::default_ai_context_impl::find_targets().


| virtual std::vector<goal_ptr>& ai::readonly_context_proxy::get_goals | ( | ) | [inline, virtual] |
Definition at line 722 of file contexts.hpp.
References ai::readonly_context::get_goals(), and target_.

| virtual std::string ai::readonly_context_proxy::get_grouping | ( | ) | const [inline, virtual] |
Definition at line 710 of file contexts.hpp.
References ai::readonly_context::get_grouping(), and target_.
Referenced by ai::testing_ai_default::testing_move_to_targets_phase::choose_move(), and ai::formula_ai::get_value().


| virtual const game_info& ai::readonly_context_proxy::get_info | ( | ) | const [inline, virtual] |
Definition at line 576 of file contexts.hpp.
References ai::readonly_context::get_info(), and target_.

| virtual double ai::readonly_context_proxy::get_leader_aggression | ( | ) | const [inline, virtual] |
Definition at line 728 of file contexts.hpp.
References ai::readonly_context::get_leader_aggression(), and target_.
Referenced by ai::testing_ai_default::combat_phase::evaluate(), ai::readwrite_context_impl::execute_attack_action(), and ai::formula_ai::get_value().


| virtual config ai::readonly_context_proxy::get_leader_goal | ( | ) | const [inline, virtual] |
Definition at line 735 of file contexts.hpp.
References ai::readonly_context::get_leader_goal(), and target_.
Referenced by ai::testing_ai_default::move_leader_to_goals_phase::evaluate().


| virtual double ai::readonly_context_proxy::get_leader_value | ( | ) | const [inline, virtual] |
Definition at line 741 of file contexts.hpp.
References ai::readonly_context::get_leader_value(), and target_.
Referenced by ai::default_ai_context_impl::find_targets(), and ai::formula_ai::get_value().


| virtual double ai::readonly_context_proxy::get_number_of_possible_recruits_to_force_recruit | ( | ) | const [inline, virtual] |
Definition at line 747 of file contexts.hpp.
References ai::readonly_context::get_number_of_possible_recruits_to_force_recruit(), and target_.
Referenced by ai::formula_ai::get_value().


| virtual bool ai::readonly_context_proxy::get_passive_leader | ( | ) | const [inline, virtual] |
Definition at line 753 of file contexts.hpp.
References ai::readonly_context::get_passive_leader(), and target_.
Referenced by ai::testing_ai_default::aspect_attacks::analyze_targets(), ai::testing_ai_default::passive_leader_shares_keep_phase::evaluate(), ai::testing_ai_default::simple_move_and_targeting_phase::evaluate(), ai::testing_ai_default::get_healing_phase::evaluate(), ai::testing_ai_default::move_leader_to_keep_phase::evaluate(), ai::testing_ai_default::goto_phase::evaluate(), ai::testing_ai_default::get_villages_phase::find_villages(), ai::formula_ai::get_value(), and ai::testing_ai_default::get_villages_phase::get_villages().


| virtual bool ai::readonly_context_proxy::get_passive_leader_shares_keep | ( | ) | const [inline, virtual] |
Definition at line 759 of file contexts.hpp.
References ai::readonly_context::get_passive_leader_shares_keep(), and target_.
Referenced by ai::testing_ai_default::passive_leader_shares_keep_phase::evaluate(), ai::testing_ai_default::move_leader_to_keep_phase::evaluate(), ai::testing_ai_default::goto_phase::evaluate(), and ai::formula_ai::get_value().


| virtual const moves_map& ai::readonly_context_proxy::get_possible_moves | ( | ) | const [inline, virtual] |
Definition at line 765 of file contexts.hpp.
References ai::readonly_context::get_possible_moves(), and target_.

| virtual readonly_context& ai::readonly_context_proxy::get_readonly_context | ( | ) | [inline, virtual] |
Definition at line 503 of file contexts.hpp.
References ai::readonly_context::get_readonly_context(), and target_.

| virtual const std::vector<unit>& ai::readonly_context_proxy::get_recall_list | ( | ) | const [inline, virtual] |
Definition at line 777 of file contexts.hpp.
References ai::readonly_context::get_recall_list(), and target_.

| virtual stage_ptr ai::readonly_context_proxy::get_recruitment | ( | ai_context & | context | ) | const [inline, virtual] |
Definition at line 783 of file contexts.hpp.
References ai::readonly_context::get_recruitment(), and target_.
Referenced by ai::testing_ai_default::aspect_recruitment_phase::execute(), and ai::formula_ai::execute_variant().


| virtual bool ai::readonly_context_proxy::get_recruitment_ignore_bad_combat | ( | ) | const [inline, virtual] |
Definition at line 789 of file contexts.hpp.
References ai::readonly_context::get_recruitment_ignore_bad_combat(), and target_.
Referenced by ai::testing_ai_default::recruitment_phase::analyze_potential_recruit_combat(), ai::ai_default_recruitment_stage::analyze_potential_recruit_combat(), and ai::formula_ai::get_value().


| virtual bool ai::readonly_context_proxy::get_recruitment_ignore_bad_movement | ( | ) | const [inline, virtual] |
Definition at line 795 of file contexts.hpp.
References ai::readonly_context::get_recruitment_ignore_bad_movement(), and target_.
Referenced by ai::ai_default_recruitment_stage::analyze_potential_recruit_movements(), and ai::formula_ai::get_value().


| virtual const std::vector<std::string> ai::readonly_context_proxy::get_recruitment_pattern | ( | ) | const [inline, virtual] |
Definition at line 801 of file contexts.hpp.
References ai::readonly_context::get_recruitment_pattern(), and target_.
Referenced by ai::ai_default_recruitment_stage::do_play_stage(), ai::testing_ai_default::recruitment_phase::execute(), and ai::formula_ai::get_value().


| virtual int ai::readonly_context_proxy::get_recursion_count | ( | ) | const [inline, virtual] |
Get the value of the recursion counter.
Reimplemented from ai::side_context_proxy.
Reimplemented in ai::readwrite_context_proxy.
Definition at line 587 of file contexts.hpp.
References ai::side_context::get_recursion_count(), and target_.

| virtual double ai::readonly_context_proxy::get_scout_village_targeting | ( | ) | const [inline, virtual] |
Definition at line 813 of file contexts.hpp.
References ai::readonly_context::get_scout_village_targeting(), and target_.
Referenced by ai::formula_ai::get_value(), and ai::testing_ai_default::testing_move_to_targets_phase::rate_target().


| virtual bool ai::readonly_context_proxy::get_simple_targeting | ( | ) | const [inline, virtual] |
Definition at line 819 of file contexts.hpp.
References ai::readonly_context::get_simple_targeting(), and target_.
Referenced by ai::testing_ai_default::testing_move_to_targets_phase::choose_move().


| virtual const move_map& ai::readonly_context_proxy::get_srcdst | ( | ) | const [inline, virtual] |
Definition at line 807 of file contexts.hpp.
References ai::readonly_context::get_srcdst(), and target_.
Referenced by ai::testing_ai_default::aspect_attacks::analyze_targets(), ai::formula_ai::can_reach_unit(), ai::testing_ai_default::retreat_phase::evaluate(), ai::testing_ai_default::get_healing_phase::evaluate(), ai::testing_ai_default::testing_move_to_targets_phase::execute(), game_logic::attack_map_callable::get_value(), and ai::formula_ai::get_value().


| virtual bool ai::readonly_context_proxy::get_support_villages | ( | ) | const [inline, virtual] |
Definition at line 825 of file contexts.hpp.
References ai::readonly_context::get_support_villages(), and target_.
Referenced by ai::default_ai_context_impl::find_targets(), and ai::formula_ai::get_value().


| virtual double ai::readonly_context_proxy::get_village_value | ( | ) | const [inline, virtual] |
Definition at line 831 of file contexts.hpp.
References ai::readonly_context::get_village_value(), and target_.
Referenced by ai::default_ai_context_impl::find_targets(), and ai::formula_ai::get_value().


| virtual int ai::readonly_context_proxy::get_villages_per_scout | ( | ) | const [inline, virtual] |
Definition at line 837 of file contexts.hpp.
References ai::readonly_context::get_villages_per_scout(), and target_.
Referenced by ai::ai_default_recruitment_stage::do_play_stage(), ai::testing_ai_default::recruitment_phase::execute(), and ai::formula_ai::get_value().


| void ai::readonly_context_proxy::init_readonly_context_proxy | ( | readonly_context & | target | ) | [inline] |
Definition at line 497 of file contexts.hpp.
References ai::readonly_context::get_readonly_context(), ai::side_context_proxy::init_side_context_proxy(), and target_.
Referenced by ai::aspect::aspect(), ai::formula_ai::formula_ai(), ai::goal::goal(), ai::readwrite_context_proxy::init_readwrite_context_proxy(), and ai::readwrite_context_impl::readwrite_context_impl().


| virtual void ai::readonly_context_proxy::invalidate_defensive_position_cache | ( | ) | const [inline, virtual] |
Definition at line 869 of file contexts.hpp.
References ai::readonly_context::invalidate_defensive_position_cache(), and target_.
Referenced by ai::ai_composite::get_recursion_count().


| virtual void ai::readonly_context_proxy::invalidate_keeps_cache | ( | ) | const [inline, virtual] |
Definition at line 881 of file contexts.hpp.
References ai::readonly_context::invalidate_keeps_cache(), and target_.
Referenced by ai::ai_composite::get_recursion_count().


| virtual void ai::readonly_context_proxy::invalidate_move_maps | ( | ) | const [inline, virtual] |
Definition at line 875 of file contexts.hpp.
References ai::readonly_context::invalidate_move_maps(), and target_.

| virtual bool ai::readonly_context_proxy::is_active | ( | const std::string & | time_of_day, | |
| const std::string & | turns | |||
| ) | const [inline, virtual] |
Definition at line 844 of file contexts.hpp.
References ai::readonly_context::is_active(), and target_.
Referenced by ai::goal::active(), and ai::standard_aspect< T >::active().


| virtual bool ai::readonly_context_proxy::is_dst_src_enemy_valid_lua | ( | ) | const [inline, virtual] |
Definition at line 854 of file contexts.hpp.
References ai::readonly_context::is_dst_src_enemy_valid_lua(), and target_.

| virtual bool ai::readonly_context_proxy::is_dst_src_valid_lua | ( | ) | const [inline, virtual] |
Definition at line 849 of file contexts.hpp.
References ai::readonly_context::is_dst_src_valid_lua(), and target_.

| virtual bool ai::readonly_context_proxy::is_src_dst_enemy_valid_lua | ( | ) | const [inline, virtual] |
Definition at line 864 of file contexts.hpp.
References ai::readonly_context::is_src_dst_enemy_valid_lua(), and target_.

| virtual bool ai::readonly_context_proxy::is_src_dst_valid_lua | ( | ) | const [inline, virtual] |
Definition at line 859 of file contexts.hpp.
References ai::readonly_context::is_src_dst_valid_lua(), and target_.

| virtual const std::set<map_location>& ai::readonly_context_proxy::keeps | ( | ) | const [inline, virtual] |
Definition at line 887 of file contexts.hpp.
References ai::readonly_context::keeps(), and target_.

| virtual bool ai::readonly_context_proxy::leader_can_reach_keep | ( | ) | const [inline, virtual] |
Definition at line 893 of file contexts.hpp.
References ai::readonly_context::leader_can_reach_keep(), and target_.

| virtual void ai::readonly_context_proxy::log_message | ( | const std::string & | msg | ) | [inline, virtual] |
Definition at line 525 of file contexts.hpp.
References ai::readonly_context::log_message(), and target_.

| virtual const map_location& ai::readonly_context_proxy::nearest_keep | ( | const map_location & | loc | ) | const [inline, virtual] |
Definition at line 899 of file contexts.hpp.
References ai::readonly_context::nearest_keep(), and target_.
Referenced by ai::ai_default_recruitment_stage::analyze_potential_recruit_movements(), ai::ai_default_recruitment_stage::do_play_stage(), and ai::testing_ai_default::get_villages_phase::get_villages().


| virtual void ai::readonly_context_proxy::on_readonly_context_create | ( | ) | [inline, virtual] |
Definition at line 509 of file contexts.hpp.
References ai::readonly_context::on_readonly_context_create(), and target_.

| virtual double ai::readonly_context_proxy::power_projection | ( | const map_location & | loc, | |
| const move_map & | dstsrc | |||
| ) | const [inline, virtual] |
Definition at line 771 of file contexts.hpp.
References ai::readonly_context::power_projection(), and target_.
Referenced by ai::testing_ai_default::testing_move_to_targets_phase::choose_move(), ai::testing_ai_default::aspect_attacks::do_attack_analysis(), ai::testing_ai_default::retreat_phase::evaluate(), ai::testing_ai_default::get_healing_phase::evaluate(), ai::testing_ai_default::move_leader_to_goals_phase::evaluate(), ai::testing_ai_default::get_villages_phase::execute(), ai::default_ai_context_impl::find_targets(), ai::testing_ai_default::get_villages_phase::find_villages(), ai::testing_ai_default::testing_move_to_targets_phase::should_retreat(), and ai::testing_ai_default::retreat_phase::should_retreat().


| virtual void ai::readonly_context_proxy::raise_user_interact | ( | ) | const [inline, virtual] |
Definition at line 581 of file contexts.hpp.
References ai::readonly_context::raise_user_interact(), and target_.
Referenced by ai::testing_ai_default::testing_move_to_targets_phase::choose_move(), ai::testing_ai_default::aspect_attacks::do_attack_analysis(), ai::testing_ai_default::recruitment_phase::execute(), ai::testing_ai_default::aspect_recruitment_phase::execute(), ai::testing_ai_default::recruitment_phase::recruit_usage(), and ai::ai_default_recruitment_stage::recruit_usage().


| virtual void ai::readonly_context_proxy::recalculate_move_maps | ( | ) | const [inline, virtual] |
Definition at line 905 of file contexts.hpp.
References ai::readonly_context::recalculate_move_maps(), and target_.
Referenced by ai::ai_composite::get_recursion_count().


| virtual void ai::readonly_context_proxy::recalculate_move_maps_enemy | ( | ) | const [inline, virtual] |
Definition at line 911 of file contexts.hpp.
References ai::readonly_context::recalculate_move_maps_enemy(), and target_.

| virtual void ai::readonly_context_proxy::set_dst_src_enemy_valid_lua | ( | ) | [inline, virtual] |
Definition at line 921 of file contexts.hpp.
References ai::readonly_context::set_dst_src_enemy_valid_lua(), and target_.

| virtual void ai::readonly_context_proxy::set_dst_src_valid_lua | ( | ) | [inline, virtual] |
Definition at line 916 of file contexts.hpp.
References ai::readonly_context::set_dst_src_valid_lua(), and target_.

| virtual void ai::readonly_context_proxy::set_src_dst_enemy_valid_lua | ( | ) | [inline, virtual] |
Definition at line 931 of file contexts.hpp.
References ai::readonly_context::set_src_dst_enemy_valid_lua(), and target_.

| virtual void ai::readonly_context_proxy::set_src_dst_valid_lua | ( | ) | [inline, virtual] |
Definition at line 926 of file contexts.hpp.
References ai::readonly_context::set_src_dst_valid_lua(), and target_.

| virtual const map_location& ai::readonly_context_proxy::suitable_keep | ( | const map_location & | leader_location, | |
| const pathfind::paths & | leader_paths | |||
| ) | [inline, virtual] |
Definition at line 936 of file contexts.hpp.
References ai::readonly_context::suitable_keep(), and target_.
Referenced by ai::testing_ai_default::move_leader_to_keep_phase::evaluate().


| virtual config ai::readonly_context_proxy::to_readonly_context_config | ( | ) | const [inline, virtual] |
Definition at line 942 of file contexts.hpp.
References target_, and ai::readonly_context::to_readonly_context_config().

| virtual std::map<std::pair<map_location,const unit_type *>, std::pair<battle_context_unit_stats,battle_context_unit_stats> >& ai::readonly_context_proxy::unit_stats_cache | ( | ) | const [inline, virtual] |
Definition at line 949 of file contexts.hpp.
References target_, and ai::readonly_context::unit_stats_cache().
Referenced by ai::testing_ai_default::aspect_attacks::analyze_targets().


Reimplemented from ai::side_context_proxy.
Reimplemented in ai::ai_context_proxy, ai::rca_context_proxy, ai::readwrite_context_proxy, and ai::default_ai_context_proxy.
Definition at line 956 of file contexts.hpp.
Referenced by add_aspects(), add_facet(), best_defensive_position(), calculate_moves(), calculate_possible_moves(), check_attack_action(), check_move_action(), check_recall_action(), check_recruit_action(), check_stopunit_action(), current_team(), defensive_position_cache(), diagnostic(), get_aggression(), get_aspects(), get_attack_depth(), get_attacks(), get_attacks_as_variant(), get_avoid(), get_caution(), get_dstsrc(), get_enemy_dstsrc(), get_enemy_possible_moves(), get_enemy_srcdst(), get_engine_by_cfg(), get_engines(), get_goals(), get_grouping(), get_info(), get_leader_aggression(), get_leader_goal(), get_leader_value(), get_number_of_possible_recruits_to_force_recruit(), get_passive_leader(), get_passive_leader_shares_keep(), get_possible_moves(), get_readonly_context(), get_recall_list(), get_recruitment(), get_recruitment_ignore_bad_combat(), get_recruitment_ignore_bad_movement(), get_recruitment_pattern(), get_recursion_count(), get_scout_village_targeting(), get_simple_targeting(), get_srcdst(), get_support_villages(), get_village_value(), get_villages_per_scout(), init_readonly_context_proxy(), invalidate_defensive_position_cache(), invalidate_keeps_cache(), invalidate_move_maps(), is_active(), is_dst_src_enemy_valid_lua(), is_dst_src_valid_lua(), is_src_dst_enemy_valid_lua(), is_src_dst_valid_lua(), keeps(), leader_can_reach_keep(), log_message(), nearest_keep(), on_readonly_context_create(), power_projection(), raise_user_interact(), recalculate_move_maps(), recalculate_move_maps_enemy(), set_dst_src_enemy_valid_lua(), set_dst_src_valid_lua(), set_src_dst_enemy_valid_lua(), set_src_dst_valid_lua(), suitable_keep(), to_readonly_context_config(), and unit_stats_cache().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:50 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |