Public Member Functions | Private Attributes

ai::readonly_context_proxy Class Reference

#include <contexts.hpp>

Inheritance diagram for ai::readonly_context_proxy:
Inheritance graph
[legend]
Collaboration diagram for ai::readonly_context_proxy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 readonly_context_proxy ()
virtual ~readonly_context_proxy ()
void init_readonly_context_proxy (readonly_context &target)
virtual readonly_contextget_readonly_context ()
virtual void on_readonly_context_create ()
virtual const teamcurrent_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_infoget_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_mapget_aspects () const
virtual aspect_mapget_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_vectorget_attacks () const
virtual const variantget_attacks_as_variant () const
virtual const terrain_filterget_avoid () const
virtual double get_caution () const
virtual const move_mapget_dstsrc () const
virtual const move_mapget_enemy_dstsrc () const
virtual const moves_mapget_enemy_possible_moves () const
virtual const move_mapget_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_mapget_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_mapget_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_locationnearest_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_locationsuitable_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_contexttarget_

Detailed Description

Definition at line 488 of file contexts.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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]
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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]
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

virtual double ai::readonly_context_proxy::get_aggression (  )  const [inline, virtual]
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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual double ai::readonly_context_proxy::get_caution (  )  const [inline, virtual]
virtual const move_map& ai::readonly_context_proxy::get_dstsrc (  )  const [inline, virtual]
virtual const move_map& ai::readonly_context_proxy::get_enemy_dstsrc (  )  const [inline, virtual]
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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual bool ai::readonly_context_proxy::get_passive_leader (  )  const [inline, virtual]
virtual bool ai::readonly_context_proxy::get_passive_leader_shares_keep (  )  const [inline, virtual]
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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual bool ai::readonly_context_proxy::get_recruitment_ignore_bad_combat (  )  const [inline, virtual]
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual const move_map& ai::readonly_context_proxy::get_srcdst (  )  const [inline, virtual]
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void ai::readonly_context_proxy::init_readonly_context_proxy ( readonly_context target  )  [inline]
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

virtual double ai::readonly_context_proxy::power_projection ( const map_location loc,
const move_map dstsrc 
) const [inline, virtual]
virtual void ai::readonly_context_proxy::raise_user_interact (  )  const [inline, virtual]
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:50 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs