Public Member Functions | Private Attributes

ai::side_context_proxy Class Reference

#include <contexts.hpp>

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

List of all members.

Public Member Functions

 side_context_proxy ()
virtual ~side_context_proxy ()
void init_side_context_proxy (side_context &target)
virtual side_number get_side () const
 Get the side number.
virtual void set_side (side_number side)
 Set the side number.
virtual side_contextget_side_context ()
 unwrap
virtual int get_recursion_count () const
 Get the value of the recursion counter.
virtual config to_side_context_config () const
 serialize this context to config

Private Attributes

side_contexttarget_

Detailed Description

Definition at line 441 of file contexts.hpp.


Constructor & Destructor Documentation

ai::side_context_proxy::side_context_proxy (  )  [inline]

Definition at line 443 of file contexts.hpp.

virtual ai::side_context_proxy::~side_context_proxy (  )  [inline, virtual]

Definition at line 448 of file contexts.hpp.


Member Function Documentation

virtual int ai::side_context_proxy::get_recursion_count (  )  const [inline, virtual]

Get the value of the recursion counter.

Implements ai::side_context.

Reimplemented in ai::readonly_context_proxy, and ai::readwrite_context_proxy.

Definition at line 471 of file contexts.hpp.

References ai::side_context::get_recursion_count(), and target_.

Here is the call graph for this function:

virtual side_number ai::side_context_proxy::get_side (  )  const [inline, virtual]

Get the side number.

Implements ai::side_context.

Definition at line 456 of file contexts.hpp.

References ai::side_context::get_side(), and target_.

Referenced by ai::protect_goal::add_targets(), ai::ai_default_recruitment_stage::analyze_potential_recruit_movements(), ai::testing_ai_default::aspect_attacks::analyze_targets(), ai::readonly_context_impl::calculate_moves(), ai::readonly_context_impl::check_attack_action(), ai::readonly_context_impl::check_move_action(), ai::readonly_context_impl::check_recall_action(), ai::readonly_context_impl::check_recruit_action(), ai::readonly_context_impl::check_stopunit_action(), ai::testing_ai_default::testing_move_to_targets_phase::choose_move(), ai::readonly_context_impl::current_team(), ai::readwrite_context_impl::current_team_w(), ai::formula_ai::display_message(), ai::testing_ai_default::fallback_to_other_ai::do_play_stage(), ai::stage_unit_formulas::do_play_stage(), ai::idle_stage::do_play_stage(), ai::ai_default_recruitment_stage::do_play_stage(), ai::testing_ai_default::testing_recruitment_phase::do_recruit(), ai::testing_ai_default::testing_recruitment_phase::evaluate(), ai::testing_ai_default::passive_leader_shares_keep_phase::evaluate(), 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::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::recruitment_phase::evaluate(), ai::testing_ai_default::aspect_recruitment_phase::evaluate(), ai::testing_ai_default::goto_phase::evaluate(), game_logic::attack_candidate_action::evaluate(), game_logic::move_candidate_action::evaluate(), ai::testing_ai_default::testing_move_to_targets_phase::execute(), ai::testing_ai_default::global_fallback_phase::execute(), ai::testing_ai_default::passive_leader_shares_keep_phase::execute(), ai::testing_ai_default::get_villages_phase::execute(), ai::testing_ai_default::recruitment_phase::execute(), ai::readwrite_context_impl::execute_attack_action(), ai::readwrite_context_impl::execute_move_action(), ai::readwrite_context_impl::execute_recall_action(), ai::readwrite_context_impl::execute_recruit_action(), ai::readwrite_context_impl::execute_stopunit_action(), ai::formula_ai::execute_variant(), ai::default_ai_context_impl::find_targets(), ai::readonly_context_impl::get_engine_by_cfg(), ai::readonly_context_impl::get_info(), ai::readwrite_context_impl::get_info_w(), game_logic::attack_map_callable::get_value(), ai::formula_ai::get_value(), ai::testing_ai_default::get_villages_phase::get_villages(), ai::readonly_context_impl::leader_can_reach_keep(), ai::readonly_context_impl::log_message(), ai::testing_ai_default::fallback_to_other_ai::on_create(), ai::stage::on_create(), ai::readonly_context_impl::power_projection(), ai::default_ai_context_impl::rate_terrain(), ai::readonly_context_impl::recalculate_move_maps(), ai::testing_ai_default::recruitment_phase::recruit_usage(), ai::ai_default_recruitment_stage::recruit_usage(), and ai::testing_ai_default::move_leader_to_goals_phase::remove_goal().

Here is the call graph for this function:

virtual side_context& ai::side_context_proxy::get_side_context (  )  [inline, virtual]

unwrap

Implements ai::side_context.

Definition at line 466 of file contexts.hpp.

References ai::side_context::get_side_context(), and target_.

Here is the call graph for this function:

void ai::side_context_proxy::init_side_context_proxy ( side_context target  )  [inline]

Definition at line 451 of file contexts.hpp.

References ai::side_context::get_side_context(), and target_.

Referenced by ai::readonly_context_proxy::init_readonly_context_proxy(), and ai::readonly_context_impl::readonly_context_impl().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void ai::side_context_proxy::set_side ( side_number  side  )  [inline, virtual]

Set the side number.

Implements ai::side_context.

Definition at line 461 of file contexts.hpp.

References ai::side_context::set_side(), and target_.

Referenced by ai::idle_ai::switch_side(), and ai::ai_composite::to_config().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual config ai::side_context_proxy::to_side_context_config (  )  const [inline, virtual]

serialize this context to config

Implements ai::side_context.

Definition at line 477 of file contexts.hpp.

References target_, and ai::side_context::to_side_context_config().

Here is the call graph for this function:


Member Data Documentation


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:41 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs