#include <contexts.hpp>
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. More... | |
virtual void | set_side (side_number side) |
Set the side number. More... | |
virtual side_context & | get_side_context () |
unwrap More... | |
virtual int | get_recursion_count () const |
Get the value of the recursion counter. More... | |
virtual config | to_side_context_config () const |
serialize this context to config More... | |
Public Member Functions inherited from ai::side_context | |
virtual | ~side_context () |
empty destructor More... | |
side_context () | |
empty constructor More... | |
Private Attributes | |
side_context * | target_ |
Definition at line 465 of file contexts.hpp.
|
inline |
Definition at line 467 of file contexts.hpp.
|
inlinevirtual |
Definition at line 472 of file contexts.hpp.
|
inlinevirtual |
Get the value of the recursion counter.
Implements ai::side_context.
Reimplemented in ai::readwrite_context_impl, ai::readonly_context_impl, ai::readwrite_context_proxy, ai::readonly_context_proxy, ai::default_ai_context_impl, ai::formula_ai, ai::candidate_action, ai::ai_composite, and ai::stage.
Definition at line 495 of file contexts.hpp.
References ai::side_context::get_recursion_count(), and target_.
|
inlinevirtual |
Get the side number.
Implements ai::side_context.
Definition at line 480 of file contexts.hpp.
References ai::side_context::get_side(), and target_.
Referenced by ai::protect_goal::add_targets(), ai::ai_default_rca::aspect_attacks_base::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::readonly_context_impl::check_synced_command_action(), ai::ai_default_rca::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::stage_unit_formulas::do_play_stage(), ai::idle_stage::do_play_stage(), ai::ai_default_rca::goto_phase::evaluate(), ai::ai_default_rca::move_leader_to_goals_phase::evaluate(), game_logic::move_candidate_action::evaluate(), game_logic::attack_candidate_action::evaluate(), ai::ai_default_rca::move_leader_to_keep_phase::evaluate(), ai::ai_default_rca::get_villages_phase::evaluate(), ai::default_recruitment::recruitment::evaluate(), ai::ai_default_rca::get_healing_phase::evaluate(), ai::ai_default_rca::retreat_phase::evaluate(), ai::ai_default_rca::leader_shares_keep_phase::evaluate(), ai::ai_default_rca::move_to_targets_phase::execute(), ai::ai_default_rca::get_villages_phase::execute(), ai::default_recruitment::recruitment::execute(), ai::ai_default_rca::leader_shares_keep_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::readwrite_context_impl::execute_synced_command_action(), ai::formula_ai::execute_variant(), ai::default_ai_context_impl::find_targets(), ai::readonly_context_impl::get_engine_by_cfg(), ai::default_recruitment::recruitment::get_estimated_income(), 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::ai_default_rca::get_villages_phase::get_villages(), ai::readonly_context_impl::leader_can_reach_keep(), ai::readonly_context_impl::log_message(), ai::lua_goal::lua_goal(), ai::stage::on_create(), ai::goal::on_create(), ai::ai_composite::on_create(), ai::readonly_context_impl::power_projection(), ai::default_ai_context_impl::rate_terrain(), ai::readonly_context_impl::recalculate_move_maps(), ai::ai_default_rca::move_leader_to_goals_phase::remove_goal(), ai::goal::unrecognized(), ai::default_recruitment::recruitment::update_average_local_cost(), ai::default_recruitment::recruitment::update_important_hexes(), and ai::default_recruitment::recruitment::update_own_units_count().
|
inlinevirtual |
unwrap
Implements ai::side_context.
Definition at line 490 of file contexts.hpp.
References ai::side_context::get_side_context(), and target_.
|
inline |
Definition at line 475 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().
|
inlinevirtual |
Set the side number.
Implements ai::side_context.
Definition at line 485 of file contexts.hpp.
References ai::side_context::set_side(), and target_.
Referenced by ai::ai_composite::switch_side().
|
inlinevirtual |
serialize this context to config
Implements ai::side_context.
Definition at line 501 of file contexts.hpp.
References target_, and ai::side_context::to_side_context_config().
|
private |
Definition at line 508 of file contexts.hpp.
Referenced by get_recursion_count(), get_side(), get_side_context(), init_side_context_proxy(), set_side(), and to_side_context_config().