The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
 Get the side number. More...
 
virtual void set_side (side_number side)
 Set the side number. More...
 
virtual side_contextget_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_contexttarget_
 

Detailed Description

Definition at line 465 of file contexts.hpp.

Constructor & Destructor Documentation

ai::side_context_proxy::side_context_proxy ( )
inline

Definition at line 467 of file contexts.hpp.

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

Definition at line 472 of file contexts.hpp.

Member Function Documentation

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

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

unwrap

Implements ai::side_context.

Definition at line 490 of file contexts.hpp.

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

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

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

Member Data Documentation

side_context* ai::side_context_proxy::target_
private

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