The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Private Attributes | List of all members
ai::side_context_proxy Class Reference

#include <contexts.hpp>

Inheritance diagram for ai::side_context_proxy:

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_contextget_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_contexttarget_
 

Detailed Description

Definition at line 382 of file contexts.hpp.

Constructor & Destructor Documentation

◆ side_context_proxy()

ai::side_context_proxy::side_context_proxy ( )
inline

Definition at line 384 of file contexts.hpp.

◆ ~side_context_proxy()

virtual ai::side_context_proxy::~side_context_proxy ( )
inlinevirtual

Definition at line 389 of file contexts.hpp.

Member Function Documentation

◆ get_recursion_count()

virtual int ai::side_context_proxy::get_recursion_count ( ) const
inlineoverridevirtual

◆ get_side()

virtual side_number ai::side_context_proxy::get_side ( ) const
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().

◆ get_side_context()

virtual side_context& ai::side_context_proxy::get_side_context ( )
inlineoverridevirtual

unwrap

Implements ai::side_context.

Definition at line 406 of file contexts.hpp.

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

◆ init_side_context_proxy()

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

◆ set_side()

virtual void ai::side_context_proxy::set_side ( side_number  side)
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().

◆ to_side_context_config()

virtual config ai::side_context_proxy::to_side_context_config ( ) const
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().

Member Data Documentation

◆ target_

side_context* ai::side_context_proxy::target_
private

The documentation for this class was generated from the following file: