The Battle for Wesnoth  1.15.1+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:
Inheritance graph

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 450 of file contexts.hpp.

Constructor & Destructor Documentation

◆ side_context_proxy()

ai::side_context_proxy::side_context_proxy ( )
inline

Definition at line 452 of file contexts.hpp.

◆ ~side_context_proxy()

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

Definition at line 457 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 465 of file contexts.hpp.

Referenced by ai::protect_goal::add_targets(), ai::ai_default_rca::aspect_attacks_base::analyze_targets(), ai::readonly_context_impl::calculate_moves(), ai::ai_default_rca::move_to_targets_phase::choose_move(), ai::readonly_context_impl::current_team(), 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(), wfl::move_candidate_action::evaluate(), ai::ai_default_rca::move_leader_to_keep_phase::evaluate(), wfl::attack_candidate_action::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::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(), wfl::attack_map_callable::get_value(), ai::formula_ai::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::log_message(), ai::lua_goal::lua_goal(), ai::stage::on_create(), ai::goal::on_create(), ai::ai_composite::on_create(), 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 475 of file contexts.hpp.

References ai::side_context::get_side_context().

◆ 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 470 of file contexts.hpp.

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 486 of file contexts.hpp.

Member Data Documentation

◆ target_

side_context* ai::side_context_proxy::target_
private

Definition at line 493 of file contexts.hpp.


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