#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 override |
Get the side number. More... | |
virtual void | set_side (side_number side) override |
Set the side number. More... | |
virtual side_context & | get_side_context () override |
unwrap More... | |
virtual int | get_recursion_count () const override |
Get the value of the recursion counter. More... | |
virtual config | to_side_context_config () const override |
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 382 of file contexts.hpp.
|
inline |
Definition at line 384 of file contexts.hpp.
|
inlinevirtual |
Definition at line 389 of file contexts.hpp.
|
inlineoverridevirtual |
Get the value of the recursion counter.
Implements ai::side_context.
Reimplemented in ai::formula_ai, ai::readwrite_context_impl, ai::readonly_context_impl, ai::readwrite_context_proxy, ai::readonly_context_proxy, ai::default_ai_context_impl, ai::stage, ai::candidate_action, and ai::ai_composite.
Definition at line 411 of file contexts.hpp.
References ai::side_context::get_recursion_count(), and target_.
|
inlineoverridevirtual |
Get the side number.
Implements ai::side_context.
Definition at line 396 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::idle_stage::do_play_stage(), ai::stage_unit_formulas::do_play_stage(), ai::ai_default_rca::goto_phase::evaluate(), ai::ai_default_rca::move_leader_to_goals_phase::evaluate(), ai::ai_default_rca::move_leader_to_keep_phase::evaluate(), ai::ai_default_rca::get_villages_phase::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::default_recruitment::recruitment::evaluate(), ai::ai_default_rca::get_villages_phase::execute(), ai::ai_default_rca::leader_shares_keep_phase::execute(), ai::ai_default_rca::move_to_targets_phase::execute(), ai::default_recruitment::recruitment::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::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(), ai::formula_ai::get_value(), wfl::attack_map_callable::get_value(), ai::ai_default_rca::get_villages_phase::get_villages(), ai::ai_default_rca::aspect_attacks::is_allowed_attacker(), ai::ai_default_rca::aspect_attacks::is_allowed_enemy(), ai::readonly_context_impl::leader_can_reach_keep(), ai::readonly_context_impl::log_message(), ai::lua_goal::lua_goal(), ai::ai_composite::on_create(), ai::goal::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::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().
|
inlineoverridevirtual |
unwrap
Implements ai::side_context.
Definition at line 406 of file contexts.hpp.
References ai::side_context::get_side_context(), and target_.
|
inline |
Definition at line 391 of file contexts.hpp.
References target_.
Referenced by ai::readonly_context_proxy::init_readonly_context_proxy(), and ai::readonly_context_impl::readonly_context_impl().
|
inlineoverridevirtual |
Set the side number.
Implements ai::side_context.
Definition at line 401 of file contexts.hpp.
References ai::side_context::set_side(), and target_.
Referenced by ai::ai_composite::switch_side().
|
inlineoverridevirtual |
serialize this context to config
Implements ai::side_context.
Definition at line 416 of file contexts.hpp.
References target_, and ai::side_context::to_side_context_config().
|
private |
Definition at line 422 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().