The Battle for Wesnoth  1.19.4+dev
Namespaces | Macros | Functions | Variables
function.cpp File Reference
#include "formula/function.hpp"
#include "color.hpp"
#include "formula/callable_objects.hpp"
#include "formula/debugger.hpp"
#include "game_config.hpp"
#include "game_display.hpp"
#include "log.hpp"
#include "pathutils.hpp"
#include <boost/algorithm/string.hpp>
#include <boost/math/constants/constants.hpp>
#include <cctype>
#include <deque>
Include dependency graph for function.cpp:

Go to the source code of this file.

Namespaces

 wfl
 
 wfl::builtins
 
 wfl::actions
 

Macros

#define DBG_NG   LOG_STREAM(debug, log_engine)
 
#define LOG_SF   LOG_STREAM(info, log_scripting_formula)
 
#define WRN_SF   LOG_STREAM(warn, log_scripting_formula)
 
#define ERR_SF   LOG_STREAM(err, log_scripting_formula)
 

Functions

 wfl::builtins::DEFINE_WFL_FUNCTION (debug, 0, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (dir, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (if, 2, -1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (switch, 3, -1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (abs, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (min, 1, -1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (max, 1, -1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (debug_float, 2, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (debug_print, 1, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (debug_profile, 1, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (keys, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (values, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (tolist, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (tomap, 1, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (substring, 2, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (replace, 3, 4)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (replace_all, 3, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (starts_with, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (ends_with, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (insert, 3, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (length, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (concatenate, 1, -1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (str_upper, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (str_lower, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (sin, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (cos, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (tan, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (asin, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (acos, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (atan, 1, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (sqrt, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (cbrt, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (root, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (log, 1, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (exp, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (pi, 0, 0)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (hypot, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (index_of, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (choose, 2, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (wave, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (lerp, 3, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (lerp_index, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (get_palette, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (clamp, 3, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (sort, 1, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (reverse, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (contains_string, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (find_string, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (filter, 2, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (find, 2, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (map, 2, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (take_while, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (zip, 1, -1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (reduce, 2, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (sum, 1, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (head, 1, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (tail, 1, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (size, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (null, 0, -1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (ceil, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (round, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (floor, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (trunc, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (frac, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (sgn, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (as_decimal, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (loc, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (pair, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (distance_between, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (adjacent_locs, 1, 1)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (locations_in_radius, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (are_adjacent, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (relative_dir, 2, 2)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (direction_from, 2, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (rotate_loc_around, 2, 3)
 
 wfl::builtins::DEFINE_WFL_FUNCTION (type, 1, 1)
 
 wfl::actions::DEFINE_WFL_FUNCTION (safe_call, 2, 2)
 
 wfl::actions::DEFINE_WFL_FUNCTION (set_var, 2, 2)
 

Variables

static lg::log_domain log_engine ("engine")
 
static lg::log_domain log_scripting_formula ("scripting/formula")
 
static thread_local std::deque< std::string > wfl::call_stack
 For printing error messages when WFL parsing or evaluation fails, this contains the names of the WFL functions being evaluated. More...
 

Macro Definition Documentation

◆ DBG_NG

#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 34 of file function.cpp.

◆ ERR_SF

#define ERR_SF   LOG_STREAM(err, log_scripting_formula)

Definition at line 38 of file function.cpp.

◆ LOG_SF

#define LOG_SF   LOG_STREAM(info, log_scripting_formula)

Definition at line 36 of file function.cpp.

◆ WRN_SF

#define WRN_SF   LOG_STREAM(warn, log_scripting_formula)

Definition at line 37 of file function.cpp.

Variable Documentation

◆ a_

variant a_
mutableprivate

◆ b_

variant b_
private

◆ expr_

expression_ptr expr_
private

Definition at line 810 of file function.cpp.

◆ fallback_

const formula_callable* fallback_
private

◆ i

std::size_t i

Definition at line 1023 of file function.cpp.

Referenced by pathfind::a_star_search(), unit::ability_active(), unit::ability_affects_adjacent(), ai::ai_default_rca::move_to_targets_phase::access_points(), display::action_pressed(), editor::editor_palette< Item >::active_group_index(), actions::actor_sighted(), ai::readonly_context_impl::add_aspects(), replay::add_chat_log_entry(), ai::component::add_child(), ai::readonly_context_impl::add_facet(), schema_validation::wml_tag::add_filter(), gui2::dialogs::preferences_dialog::add_friend_list_entry(), gui2::dialogs::preferences_dialog::add_hotkey_callback(), add_prefixes(), gui2::dialogs::mp_staging::add_side_node(), editor::editor_palette< Item >::adjust_size(), editor::location_palette::adjust_size(), prefs::aes_decrypt(), prefs::aes_encrypt(), attack_type::alternative_damage_types(), ai::attack_analysis::analyze(), gui2::listbox::any_rows_shown(), plugins_manager::any_running(), unit::apply_builtin_effect(), config::apply_diff(), simple_wml::node::apply_diff(), ng::create_engine::type_list::apply_filter(), gui2::dialogs::game_load::apply_filter_text(), mp::lobby_info::apply_game_filter(), image::apply_light(), actions::undo_list::apply_shroud_changes(), array_to_surface(), ai::attack_analysis::attack_close(), attack_info(), wesnothd::server::authenticate(), combatant::average_hp(), backstab_check(), unit_map::begin_core(), mp::lobby_info::begin_state_sync(), ai::readonly_context_impl::best_defensive_position(), BF_crypt(), BF_set_key(), BOOST_AUTO_TEST_CASE(), gui2::builder_grid::build(), unit_type::build_created(), unit_type::build_full(), unit_type::build_help_index(), prefs::build_key(), wfl::variant_int::build_range_variant(), utils::bullet_list(), movetype::terrain_info::data::calc_value(), gui2::policy::placement::horizontal_list::calculate_best_size(), gui2::policy::placement::vertical_list::calculate_best_size(), gui2::policy::placement::table::calculate_best_size(), gui2::policy::placement::independent::calculate_best_size(), gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::calculate_order(), statistics_t::calculate_stats(), playsingle_controller::hotkey_handler::can_execute_command(), editor::editor_controller::can_execute_command(), ai::formula_ai::can_reach_unit(), ai::cfun_ai_get_attacks(), ai::cfun_ai_get_recruitment_pattern(), ai::cfun_ai_get_targets(), ai::component::change_child(), ng::depcheck::manager::change_era(), ng::depcheck::manager::change_modifications(), ng::depcheck::manager::change_scenario(), events::menu_handler::change_side(), ai::readonly_context_impl::check_attack_action(), editor::context_manager::check_open_map(), simple_wml::node::check_ordered_children(), editor::context_manager::check_switch_open_map(), game_board::check_victory(), simple_wml::node::child(), config::child_count(), config::child_or_add(), config::child_or_empty(), config::child_range(), simple_wml::node::children(), battle_context::choose_attacker_weapon(), battle_context::choose_defender_weapon(), ai::ai_default_rca::move_to_targets_phase::choose_move(), simple_wml::document::clear(), unit_map::clear(), map_labels::clear(), config::clear_children_impl(), config::clear_diff_track(), map_labels::clear_map(), tooltips::clear_tooltips(), image::col_to_uchar(), game_config::color_info(), simple_wml::document::compress(), wfl::variant::concatenate(), ng::contains_ignore_case(), wb::manager::contextual_execute(), events::menu_handler::continue_move(), simple_wml::node::copy_into(), count_leading_zeros(), gui2::dialogs::editor_edit_pbl::create_cfg(), wfl::function_symbol_table::create_function(), default_map_generator::create_scenario(), default_map_generator_job::default_generate_map(), wfl::builtins::DEFINE_WFL_FUNCTION(), wfl::gamestate::DEFINE_WFL_FUNCTION(), ai::component::delete_child(), savegame::save_index_class::delete_old_auto_saves(), gui2::tree_view_node::describe_path(), wesnothd::game::describe_slots(), filesystem::dir_size(), events::map_command_handler< Worker >::dispatch(), ai::ai_default_rca::get_villages_phase::dispatch_complex(), gui2::dialogs::mp_options_helper::display_custom_options(), ai::ai_default_rca::aspect_attacks_base::do_attack_analysis(), wfl::attack_type_callable::do_compare(), events::console_handler::do_discover(), editor::editor_controller::do_execute_command(), do_gameloop(), ai::stage_unit_formulas::do_play_stage(), events::chat_command_handler::do_remove(), events::console_handler::do_unit(), gui2::rectangle_shape::draw(), gui2::round_rectangle_shape::draw(), gui2::circle_shape::draw(), gui2::text_shape::draw(), gui2::dialogs::attack_predictions::draw_hp_graph(), wb::draw_numbers(), edit_distance_approx(), wesnothd::game::end_turn(), game_board::end_turn(), ai::ai_default_rca::move_to_targets_phase::enemies_along_path(), config::erase(), ai::ai_default_rca::goto_phase::evaluate(), ai::ai_default_rca::combat_phase::evaluate(), ai::ai_default_rca::retreat_phase::evaluate(), wfl::move_candidate_action::evaluate(), wfl::attack_candidate_action::evaluate(), ai::ai_default_rca::get_villages_phase::execute(), ai::ai_default_rca::leader_shares_keep_phase::execute(), wfl::list_expression::execute(), wfl::map_expression::execute(), wfl::string_expression::execute(), hotkey::command_executor::execute_action(), ai::readwrite_context_impl::execute_attack_action(), game_events::manager::execute_on_events(), editor::context_manager::expand_areas_menu(), play_controller::hotkey_handler::expand_autosaves(), editor::context_manager::expand_load_mru_menu(), editor::context_manager::expand_local_time_menu(), editor::context_manager::expand_open_maps_menu(), editor::editor_palette< Item >::expand_palette_groups_menu(), editor::empty_palette::expand_palette_groups_menu(), editor::location_palette::expand_palette_groups_menu(), play_controller::hotkey_handler::expand_quickreplay(), editor::context_manager::expand_sides_menu(), editor::context_manager::expand_time_menu(), play_controller::hotkey_handler::expand_wml_commands(), editor::editor_controller::export_selection_coords(), draw_manager::expose(), unit_map::extract(), combatant::fight(), unit_filter_impl::unit_filter_compound::fill(), display::fill_images_list(), events::mouse_handler::fill_weapon_choices(), gui2::dialogs::log_settings::filter_text_changed(), gui2::dialogs::unit_create::filter_text_changed(), gui2::dialogs::unit_recall::filter_text_changed(), gui2::dialogs::unit_recruit::filter_text_changed(), gui2::listbox::finalize(), gui2::addon_list::finalize_setup(), pathfind::paths::dest_vect::find(), gui2::policy::placement::independent::find(), unit_map::find(), gui2::stacked_widget_implementation::find(), gui2::policy::placement::table::find_at(), gui2::policy::placement::horizontal_list::find_at(), gui2::policy::placement::vertical_list::find_at(), find_attack(), config::find_child(), find_child_by_index(), ai::find_component(), ng::create_engine::find_extra_by_id(), unit_map::find_first_leader(), simple_wml::node::find_in_map(), unit_map::find_leader(), unit_map::find_leaders(), ng::create_engine::find_level_by_id(), terrain_type_data::find_or_create(), unit_type_data::find_race(), find_ref(), pathfind::find_routes(), ai::default_ai_context_impl::find_targets(), ng::connect_engine::find_user_side_index_by_id(), playsingle_controller::find_viewing_side(), find_widget_impl(), terrain_builder::flush_local_rules(), footsteps_images(), ai::ai_default_rca::move_to_targets_phase::form_group(), utils::format_conjunct_list(), utils::format_disjunct_list(), help::format_mp_entry(), ai::ai_default_rca::get_villages_phase::full_dispatch(), mp::game_info::game_info(), default_map_generator_job::generate_height_map(), help::generate_races_sections(), reports::generate_report(), default_map_generator_job::generate_river_internal(), help::generate_trait_topics(), help::generate_unit_sections(), help::generate_unit_topics(), help::generate_weapon_special_topics(), config::get(), unit::get_abilities(), unit::get_abilities_weapons(), unit::get_ability_bool(), gui2::dialogs::mp_create_game::get_active_mods(), events::map_command_handler< Worker >::get_actual_cmd(), events::mouse_handler::get_adj_enemies(), events::map_command_handler< Worker >::get_aliases(), tod_manager::get_area_on_hex(), events::console_handler::get_arg(), video::get_available_resolutions(), ai::default_recruitment::recruitment::get_best_recruit_from_scores(), ai::component::get_child(), ai::component::get_children(), simple_wml::node::get_children(), preprocessor_data::get_chunk(), font::pango_text::get_column_line(), events::map_command_handler< Worker >::get_command(), events::map_command_handler< Worker >::get_commands_list(), persist_manager::get_context(), progressive_pair< T >::get_current_element(), progressive_single< T >::get_current_element(), tod_manager::get_current_time(), font::pango_text::get_cursor_position(), config::get_deprecated_attribute(), config::get_deprecated_child_range(), string_enums::enum_base< Definition >::get_enum(), ng::depcheck::manager::get_era_index(), ai::actions::get_error_name(), ai::default_recruitment::recruitment::get_estimated_income(), filesystem::get_files_in_dir(), font::get_floating_label_rect(), display::get_fog_shroud_images(), mp::lobby_info::get_game_by_id(), unit_type::get_gender_unit_type(), get_global_variable(), gui2::dialogs::attack_predictions::get_hitpoint_probabilities(), tod_manager::get_illuminated_time_of_day(), wfl::where_variables::get_inputs(), wfl::map_formula_callable::get_inputs(), gui2::generator_base::get_items_shown(), wfl::variant::get_keys(), unit::get_known_boolean_state_id(), gui2::dialogs::addon_manager::get_lang_filter_visibility(), gui2::stacked_widget::get_layer_grid(), font::pango_text::get_lines(), get_locale(), get_location(), terrain_filter::get_locs_impl(), hotkey::command_executor::get_menu_images(), gui2::get_mp_tooltip(), gui2::tree_view_node::get_node_above(), gui2::tree_view_node::get_node_below(), editor::map_fragment::get_offset_area(), config::get_old_attribute(), pathfind::paths::dest_vect::get_path(), ng::depcheck::manager::get_scenario_index(), gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::get_selected_item(), get_source(), attack_type::get_specials(), theme::get_status_item(), gui2::tab_container::get_tab_grid(), gui2::dialogs::addon_manager::get_tag_filter_visibility(), game_board::get_team(), pathfind::get_teleport_locations(), terrain_type_data::get_terrain_info(), get_tile_ring(), tod_manager::get_time_of_day(), gui2::dialogs::drop_down_menu::get_toggle_states(), get_track(), sound::get_track(), terrain_type_data::get_underlying_terrain_string(), get_unit_type(), wfl::where_variables::get_value(), lua_callable::get_value(), ai::formula_ai::get_value(), wfl::attack_map_callable::get_value(), wfl::move_map_callable::get_value(), wfl::gamemap_callable::get_value(), wfl::variant::get_values(), persist_file_context::get_var(), unit_type::get_variation(), attack_type::get_weapon_ability(), events::menu_handler::goto_leader(), unit::halo_or_icon_abilities(), ai::vector_property_handler< T >::handle_add(), ai::vector_property_handler< T >::handle_delete(), gui::textbox::handle_event(), ai::vector_property_handler< T >::handle_get(), gui2::policy::placement::vertical_list::handle_key_down_arrow(), gui2::policy::placement::table::handle_key_down_arrow(), gui2::policy::placement::horizontal_list::handle_key_left_arrow(), gui2::policy::placement::table::handle_key_left_arrow(), gui2::policy::placement::horizontal_list::handle_key_right_arrow(), gui2::policy::placement::table::handle_key_right_arrow(), gui2::policy::placement::vertical_list::handle_key_up_arrow(), gui2::policy::placement::table::handle_key_up_arrow(), campaignd::server::handle_read_from_fifo(), campaignd::server::handle_request_campaign_list(), config::has_child(), events::has_focus(), attack_type::has_weapon_ability(), config::hash(), game_events::builtin_conditions::have_unit(), events::map_command_handler< Worker >::help(), gui2::dialogs::mp_change_control::highlight_side_nick(), editor::editor_toolkit::hotkey_set_mouse_action(), ai::impl_ai_aspect_get(), gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::impl_create_items(), impl_mp_settings_get(), impl_music_set(), impl_namedtuple_get(), impl_namedtuple_tostring(), game_lua_kernel::impl_schedule_get(), game_lua_kernel::impl_schedule_set(), lua_stringx::impl_str_index(), lua_common::impl_vconfig_get(), lua_common::impl_vconfig_ipairs_iter(), utf8::index(), ng::create_engine::init_all_levels(), editor::editor_toolkit::init_brushes(), game_launcher::init_lua_script(), editor::context_manager::init_map_generators(), editor::editor_toolkit::init_mouse_actions(), context_free_grammar_generator::init_seed(), mp::initial_level_config(), gui2::dialogs::preferences_dialog::initialize_callbacks(), pathfind::paths::dest_vect::insert(), gui2::password_box::insert_char(), simple_wml::node::insert_ordered_child(), simple_wml::node::insert_ordered_child_list(), lua_kernel_base::interactive_run(), intf_debug_ai(), intf_default_generate_height_map(), intf_describe_plugins(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), intf_find_path(), game_lua_kernel::intf_find_reach(), game_lua_kernel::intf_get_recall_units(), game_lua_kernel::intf_get_side(), game_lua_kernel::intf_get_units(), lua_wml::intf_load_wml(), intf_music_add(), intf_music_remove(), intf_named_tuple(), intf_object_dir(), lua_kernel_base::intf_print(), intf_set_dialog_canvas(), lua_stringx::intf_str_join(), game_display::invalidate_route(), font::inverse_table::inverse_table(), unit_map::is_found(), editor::editor_toolkit::is_mouse_action_set(), unit_map::is_valid(), utils::join(), utils::join_map(), wesnothd::server::kick_handler(), gui2::dialogs::language_selection::language_selection(), draw_manager::layout(), editor::editor_palette< Item >::layout(), editor::location_palette::layout(), gui2::stacked_widget::layout_children(), lineno_string(), wesnothd::ban_manager::list_deleted_bans(), gui2::dialogs::lua_interpreter::input_model::list_history(), gui2::listbox::list_item_clicked(), wfl::variant_list::list_op(), wesnothd::server::load_config(), load_fake_units(), network_asio::load_tls_root_certs(), gui2::dialogs::editor_edit_unit::load_unit_type(), editor::location_palette::location_palette(), lua_check_impl::lua_check(), lua_check_impl::lua_push(), luaW_check_locationset(), luaW_check_schedule(), luaW_push_locationset(), luaW_push_namedtuple(), luaW_pushsimdata(), luaW_to_locationset(), luaW_toconfig(), luaW_tofaivariant(), unit_map::make_const_unit_iterator(), unit_map::make_unit_iterator(), pathfind::manager::manager(), utils::map_split(), pathfind::mark_route(), markov_generate_name(), markov_prefixes(), terrain_filter::match_impl(), terrain_filter::match_internal(), map_location::matches_range(), display::menu_pressed(), animation_branch::merge(), shroud_map::merge(), merge_alias_lists(), statistics_record::merge_battle_result_maps(), config::merge_children_by_attribute(), statistics_record::merge_cth_map(), statistics_record::merge_str_int_map(), config::merge_with(), gui2::dialogs::migrate_version_selection::migrate_version_selection(), gui2::dialogs::campaign_selection::mod_toggled(), unit_map::move(), font::move_floating_label(), ai::ai_default_rca::move_to_targets_phase::move_group(), wfl::msg(), simple_wml::node::nattributes_recursive(), simple_wml::node::nchildren(), ai::readonly_context_impl::nearest_keep(), game_board::new_turn(), t_translation::number_to_string_(), gui2::dialogs::mp_staging::on_ai_select(), wb::manager::on_change_controller(), gui2::dialogs::mp_create_game::on_filter_change(), gui2::dialogs::statistics_dialog::on_primary_list_select(), gui2::dialogs::game_stats::on_tab_select(), gui2::dialogs::mp_create_game::on_tab_select(), SDLMain::openChangelog:, config::all_children_iterator::operator!=(), vconfig::all_children_iterator::operator!=(), config::attribute_iterator::operator!=(), vconfig::attribute_iterator::operator!=(), config::child_iterator::operator!=(), config::const_all_children_iterator::operator!=(), config::const_attribute_iterator::operator!=(), config::const_child_iterator::operator!=(), gui2::grid::iterator::operator!=(), help::unit_topic_generator::operator()(), ai::lua_aspect_visitor::operator()(), config_attribute_value::string_visitor::operator()(), wfl::fai_variant_visitor::operator()(), image::adjust_alpha_modification::operator()(), image::adjust_channels_modification::operator()(), vconfig::all_children_iterator::operator++(), vconfig::all_children_iterator::operator--(), operator<<(), config_attribute_value::operator=(), config::all_children_iterator::operator==(), vconfig::all_children_iterator::operator==(), config::attribute_iterator::operator==(), vconfig::attribute_iterator::operator==(), config::child_iterator::operator==(), config::const_all_children_iterator::operator==(), config::const_attribute_iterator::operator==(), config::const_child_iterator::operator==(), gui2::grid::iterator::operator==(), config::operator[](), symbol_table::operator[](), wfl::variant::operator[](), font::inverse_table::operator[](), lg::log_in_progress::operator|(), simple_wml::document::output(), simple_wml::node::output(), simple_wml::node::output_size(), gui2::dialogs::outro::outro(), attack_type::overwrite_special_overwriter(), utils::parenthetical_split(), map_location::parse_directions(), wfl::parse_expression(), gamemap_base::parse_location_range(), wesnothd::ban_manager::parse_time(), editor::map_fragment::paste_into(), gui2::policy::placement::table::place(), gui2::policy::placement::horizontal_list::place(), gui2::policy::placement::vertical_list::place(), gui2::policy::placement::independent::place(), gui2::grid::place(), cave_map_generator::cave_map_generator_job::place_chamber(), cave_map_generator::cave_map_generator_job::place_passage(), game_state::place_sides_in_preferred_locations(), place_village(), placing_score(), sound::play_music_config(), playsingle_controller::play_scenario_main_loop(), sound::play_track(), ai::readonly_context_impl::power_projection(), gui2::dialogs::addon_manager::pre_show(), gui2::dialogs::editor_edit_pbl::pre_show(), gui2::dialogs::editor_edit_unit::pre_show(), gui2::dialogs::editor_resize_map::pre_show(), gui2::dialogs::end_credits::pre_show(), gui2::dialogs::formula_debugger::pre_show(), gui2::dialogs::game_load::pre_show(), gui2::dialogs::game_stats::pre_show(), gui2::dialogs::log_settings::pre_show(), gui2::dialogs::preferences_dialog::pre_show(), gui2::dialogs::unit_advance::pre_show(), gui2::dialogs::unit_create::pre_show(), gui2::dialogs::unit_list::pre_show(), gui2::dialogs::unit_recall::pre_show(), help::print_behavior_description(), ai::print_component(), context_free_grammar_generator::print_nonterminal(), help::print_trait_list(), wesnothd::server::process_command(), playmp_controller::process_oos(), display::propagate_invalidation(), events::pump(), push_color_palette(), push_component(), ai::push_movements(), push_track(), rank_castle_location(), ai::ai_default_rca::move_to_targets_phase::rate_group(), gui2::builder_window::read(), map_labels::read(), ucs4_convert_impl::utf8_impl::read(), read_argv(), statistics_record::read_battle_result_map(), statistics_record::read_by_cth_map(), statistics_record::read_by_cth_map_from_battle_result_maps(), read_rules_vector(), terrain_builder::tile::rebuild_cache(), ai::readonly_context_impl::recalculate_move_maps(), recolor_image(), recolor_range(), refresh_addon_version_info_cache(), editor::context_manager::refresh_all(), unit::remove_ability_by_attribute(), unit::remove_ability_by_id(), prefs::remove_acquaintance(), config::remove_child(), ai::ai_default_rca::candidate_action_evaluation_loop::remove_completed_cas(), font::remove_floating_label(), events::context::remove_handler(), schema_validation::wml_tag::remove_keys_by_type(), gui2::dialogs::mp_options_helper::remove_nodes_for_type(), simple_wml::node::remove_ordered_child(), simple_wml::node::remove_ordered_child_list(), wesnothd::server::remove_player(), tod_manager::remove_time_area(), sound::remove_track(), draw_manager::render(), display::render_map_outside_area(), terrain_builder::replace_rotate_tokens(), gui2::policy::placement::independent::request_reduce_height(), gui2::policy::placement::independent::request_reduce_width(), shroud_map::reset(), actions::undo::reset_adjacent(), unit::resistance_against(), unit::resistance_value(), sound::music_track::resolve(), ng::flg_manager::resolve_random(), map_location::rotate_right_around_center(), application_lua_kernel::thread::run_script(), editor::context_manager::save_all_maps(), wb::manager::save_temp_move(), gui2::dialogs::editor_edit_unit::save_unit_type(), font::scroll_floating_labels(), wesnothd::server::searchlog_handler(), gui2::addon_list::select_addon(), select_alternative_type(), gui2::stacked_widget::select_layer(), gui2::stacked_widget::select_layer_impl(), gui2::stacked_widget::select_layers(), select_replacement_type(), dbus::send_notification(), campaignd::server::serve_requests(), gui2::dialogs::mp_create_game::set_active_mods(), game_board::set_all_units_user_end_turn(), editor::editor_toolkit::set_brush(), hotkey::command_executor_default::set_button_state(), gui2::unit_preview_pane::set_displayed_unit(), simple_wml::node::set_doc(), events::context::set_focus(), lua_cpp::set_functions(), set_global_variable(), gui2::dialogs::preferences_dialog::set_gui2_theme_list(), gui2::policy::minimum_selection::one_item::set_item_shown(), gui::button::set_label(), schema_validation::wml_tag::set_max(), schema_validation::wml_tag::set_min(), gui2::policy::placement::table::set_origin(), gui2::policy::placement::horizontal_list::set_origin(), gui2::policy::placement::vertical_list::set_origin(), gui2::policy::placement::independent::set_origin(), theme::set_resolution(), gui2::listbox::set_row_shown(), gui2::dialogs::editor_edit_unit::set_selected_from_string(), sound::set_sound_volume(), gui2::dialogs::achievements_dialog::set_sub_achievements(), gui2::dialogs::preferences_dialog::set_theme_list(), sound::set_track(), sound::set_UI_volume(), gui2::password_box::set_value(), gui2::policy::placement::table::set_visible_rectangle(), gui2::policy::placement::horizontal_list::set_visible_rectangle(), gui2::policy::placement::vertical_list::set_visible_rectangle(), gui2::policy::placement::independent::set_visible_rectangle(), editor::terrain_palette::setup(), editor::unit_palette::setup(), simple_wml::node::shift_buffers(), gui2::dialogs::unit_mode_controller::show_array(), events::mouse_handler::show_attack_options(), font::show_floating_label(), gui2::dialogs::unit_mode_controller::show_list(), play_controller::hotkey_handler::show_menu(), lua_gui2::show_message_dialog(), gui2::dialogs::team_mode_controller::show_recall_unit(), gui2::dialogs::unit_mode_controller::show_unit(), gui2::dialogs::show_unit_list(), gui2::dialogs::team_mode_controller::show_units(), gui2::dialogs::unit_mode_controller::show_var(), utf8::size(), attack_type::special_active_impl(), utils::square_parenthetical_split(), ng::connect_engine::start_game(), mp::start_local_game_commandline(), gamemap_base::starting_positions(), scoped_wml_variable::store(), wfl::map_expression::str(), wfl::string_expression::string_expression(), t_translation::string_to_layer_(), gui2::styled_widget::styled_widget(), swap(), SYNCED_COMMAND_HANDLER_FUNCTION(), gui2::dialogs::mp_match_history::tab_switch_callback(), gui2::dialogs::tally(), game_config::tc_info(), t_translation::ter_match::ter_match(), t_translation::terrain_matches(), tod_manager::times(), ai::formula_ai::to_config(), statistics_record::campaign_stats_t::to_config(), font::pango_text::to_draw_scale(), ai::lua_object< T >::to_type(), tod_stats_at(), track_ok(), terrain_type_data::underlying_def_terrain(), terrain_type_data::underlying_mvt_terrain(), terrain_type_data::underlying_union_terrain(), replay::undo_cut(), unit_abilities(), display_context::unit_can_move(), unit_moves(), unit_race::unit_race(), unit_traits(), unit_weapons(), draw_manager::update(), gui2::dialogs::end_credits::update(), gui2::lobby_player_list_helper::update(), soundsource::positional_source::update(), gui2::multimenu_button::update_config_from_toggle_states(), ng::side_engine::update_current_controller_index(), gui2::dialogs::mp_match_history::update_display(), gui2::dialogs::editor_resize_map::update_expand_direction(), gui2::dialogs::mp_lobby::update_gamelist(), gui2::dialogs::mp_lobby::update_gamelist_diff(), gui2::multimenu_button::update_label(), gui2::player_list_helper::update_list(), soundsource::positional_source::update_positions(), display::update_render_textures(), gui2::stacked_widget::update_selected_layer_index(), gui2::dialogs::editor_edit_unit::update_wml_view(), ai::variant_value_translator< attacks_vector >::value_to_variant(), version_info::version_info(), attack_type::weapon_specials_impl_adj(), wesnoth_global_fixture::wesnoth_global_fixture(), wesnoth_setlocale(), utils::wildcard_string_match(), game_events::WML_HANDLER_FUNCTION(), statistics_record::scenario_stats_t::write(), shroud_map::write(), unit_formula_manager::write(), unit::write(), replay_recorder_base::write(), statistics_record::campaign_stats_t::write(), statistics_record::write_battle_result_map(), statistics_record::write_by_cth_map(), game_board::write_config(), filesystem::write_file(), write_location_range(), write_locations(), gui2::dialogs::editor_edit_unit::write_macro(), soundsource::manager::write_sourcespecs(), statistics_record::write_str_int_map(), simple_wml::document::~document(), simple_wml::node::~node(), persist_manager::~persist_manager(), and scoped_wml_variable::~scoped_wml_variable().

◆ log_engine

lg::log_domain log_engine("engine") ( "engine"  )
static

◆ log_scripting_formula

lg::log_domain log_scripting_formula("scripting/formula") ( "scripting/formula"  )
static