The Battle for Wesnoth  1.19.0-dev
Variables
resources Namespace Reference

Variables

game_boardgameboard = nullptr
 
play_controllercontroller = nullptr
 
game_datagamedata = nullptr
 
filter_contextfilter_con = nullptr
 
game_events::managergame_events = nullptr
 
game_lua_kernellua_kernel = nullptr
 
persist_managerpersist = nullptr
 
soundsource::managersoundsources = nullptr
 
replayrecorder = nullptr
 
::tod_managertod_manager = nullptr
 
fake_unit_managerfake_units = nullptr
 
pathfind::managertunnels = nullptr
 
actions::undo_listundo_stack = nullptr
 
std::shared_ptr< wb::managerwhiteboard = std::shared_ptr<wb::manager>()
 
game_classificationclassification = nullptr
 
bool simulation_ = false
 

Variable Documentation

◆ classification

game_classification * resources::classification = nullptr

◆ controller

play_controller * resources::controller = nullptr

Definition at line 21 of file resources.cpp.

Referenced by replay::add_synced_command(), advance_unit(), synced_context::ask_server_choice(), synced_context::block_undo(), calculate_healing(), wb::move::calculate_moves_left(), wb::manager::can_enable_execution_hotkeys(), wb::manager::can_modify_game_state(), team::change_controller_by_wml(), clear_resources(), actions::shroud_clearer::clear_unit(), wb::manager::contextual_delete(), wb::manager::contextual_execute(), wb::manager::create_temp_move(), wb::current_side_actions(), quit_confirmation::default_prompt(), wfl::gamestate::DEFINE_WFL_FUNCTION(), gui2::dialogs::lua_interpreter::display(), do_replay(), do_replay_handle(), wb::attack::execute(), wb::move::execute(), wb::recruit::execute(), wb::side_actions::execute(), get_global_variable(), replay_helper::get_init_side(), game_events::wmi_manager::get_items(), mp_sync::get_user_choice(), wfl::gamestate_callable::get_value(), synced_context::ignore_undo(), impl_merge_terrain(), game_lua_kernel::impl_run_animation(), replay::init_side(), game_lua_kernel::intf_end_turn(), game_lua_kernel::intf_has_achievement(), game_lua_kernel::intf_has_sub_achievement(), intf_terrain_mask(), side_filter::match_internal(), actions::move_unit_and_record(), wb::manager::on_mouseover_change(), game_events::filter_side::operator()(), play_controller::play_controller(), wb::mapbuilder::pre_build(), gui2::dialogs::game_stats::pre_show(), gui2::dialogs::unit_recall::pre_show(), replay::process_error(), synced_context::pull_remote_user_input(), display::queue_rerender(), actions::recall_unit(), actions::recruit_unit(), display::refresh_report(), synced_context::server_choice::request_id(), actions::shroud_clearing_action::return_village(), synced_context::run(), synced_context::run_and_store(), synced_context::run_and_throw(), wb::manager::save_recall(), wb::manager::save_recruit(), wb::manager::save_suppose_dead(), wb::manager::save_temp_attack(), wb::manager::save_temp_move(), wb::manager::send_network_data(), synced_context::server_choice::send_request(), synced_context::send_user_choice(), wb::manager::set_active(), gui2::unit_preview_pane::set_displayed_type(), wb::manager::should_clear_undo(), hotkey::command_executor::surrender_game(), SYNCED_COMMAND_HANDLER_FUNCTION(), actions::shroud_clearing_action::take_village(), actions::undo::recall_action::undo(), actions::undo::recruit_action::undo(), synced_context::undo_blocked(), tod_manager::update_server_information(), verify_and_clear_global_variable(), verify_and_get_global_variable(), verify_and_set_global_variable(), unit_animator::wait_for_end(), wait_ingame(), unit_animator::wait_until(), and game_events::WML_HANDLER_FUNCTION().

◆ fake_units

fake_unit_manager * resources::fake_units = nullptr

◆ filter_con

filter_context * resources::filter_con = nullptr

◆ game_events

game_events::manager * resources::game_events = nullptr

◆ gameboard

game_board * resources::gameboard = nullptr

Definition at line 20 of file resources.cpp.

Referenced by ai::ai_default_rca::move_to_targets_phase::access_points(), wb::action::action(), scoped_recall_unit::activate(), actions::actor_sighted(), ai::target_unit_goal::add_targets(), ai::protect_goal::add_targets(), pathfind::full_cost_map::add_unit(), replay::add_unit_checksum(), advance_unit(), map_labels::all_categories(), team::allied_human_teams(), ai::ai_default_rca::aspect_attacks_base::analyze_targets(), wb::any_recruiter(), unit::apply_builtin_effect(), actions::undo_list::apply_shroud_changes(), wb::recall::apply_temp_modifier(), wb::recruit::apply_temp_modifier(), attack_unit_and_advance(), battle_context_unit_stats::battle_context_unit_stats(), ai::readonly_context_impl::best_defensive_position(), wb::mapbuilder::build_map(), team::calculate_enemies(), calculate_healing(), team::calculate_is_enemy(), ai::readonly_context_impl::calculate_moves(), wb::move::calculate_new_route(), ai::readonly_context_impl::calculate_possible_moves(), wb::manager::can_modify_game_state(), can_see(), ai::readonly_context_impl::check_attack_action(), actions::check_recall_location(), actions::check_recruit_location(), wb::attack::check_validity(), wb::move::check_validity(), wb::recall::check_validity(), wb::recruit::check_validity(), wb::suppose_dead::check_validity(), ai::ai_default_rca::move_to_targets_phase::choose_move(), team::clear_caches(), actions::shroud_clearer::clear_dest(), actions::shroud_clearer::clear_loc(), clear_resources(), actions::clear_shroud(), actions::shroud_clearer::clear_unit(), wfl::attack_map_callable::collect_possible_attacks(), ai::default_recruitment::recruitment::compare_cost_maps_and_update_important_hexes(), pathfind::shortest_path_calculator::cost(), ai::default_ai_context_impl::count_free_hexes_in_castle(), actions::create_jamming_map(), wb::current_side_actions(), ai::readonly_context_impl::current_team(), ai::readwrite_context_impl::current_team_w(), wfl::gamestate::DEFINE_WFL_FUNCTION(), game_display::display_unit_hex(), ai::ai_default_rca::aspect_attacks_base::do_attack_analysis(), ai::recall_result::do_check_after(), ai::recruit_result::do_check_after(), ai::stopunit_result::do_check_after(), ai::attack_result::do_check_before(), ai::default_recruitment::recruitment::do_combat_analysis(), ai::attack_result::do_execute(), ai::move_result::do_execute(), ai::stopunit_result::do_execute(), set_scontext_synced::do_final_checkup(), play_controller::do_init_side(), ai::stage_unit_formulas::do_play_stage(), do_replay_handle(), wb::manager::draw_hex(), wb::recall::draw_hex(), game_display::draw_hex(), pathfind::enemy_zoc(), ai::ai_default_rca::goto_phase::evaluate(), ai::ai_default_rca::combat_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::lua_sticky_candidate_action_wrapper::evaluate(), ai::formula_ai::evaluate_candidate_action(), 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(), wb::attack::execute(), wb::move::execute(), wb::recall::execute(), wb::recruit::execute(), ai::readwrite_context_impl::execute_attack_action(), wfl::set_unit_var_callable::execute_self(), ai::attack_analysis::execute_self(), wb::find_action_at(), wb::find_actions_of(), wb::find_backup_leader(), wb::find_recruiter(), pathfind::find_routes(), ai::default_ai_context_impl::find_targets(), pathfind::find_vacant_castle(), pathfind::find_vacant_tile(), ai::ai_default_rca::get_villages_phase::find_villages(), actions::shroud_clearer::fire_events(), team::fogged(), wb::for_each_action(), ai::ai_default_rca::move_to_targets_phase::form_group(), pathfind::full_cost_map::full_cost_map(), wb::future_visible_unit(), lua_unit::get(), ai::default_recruitment::recruitment::get_cost_map_of_side(), ai::default_recruitment::recruitment::get_estimated_income(), ai::default_recruitment::recruitment::get_estimated_village_gain(), ai::formula_ai::get_keeps(), ai::action_result::get_my_team(), pathfind::full_cost_map::get_pair_at(), actions::get_recalls(), actions::get_recruits(), lua_unit::get_shared(), team::get_side_color_id(), actions::get_sides_not_seeing(), wb::manager::get_spent_gold_for(), wb::manager::get_temp_move_unit(), gui2::dialogs::get_title_suffix(), ai::move_result::get_unit(), ai::stopunit_result::get_unit(), game_events::entity_location::get_unit(), wb::move::get_unit(), wb::suppose_dead::get_unit(), synced_context::get_unit_id_diff(), wb::highlighter::get_unit_map(), ai::default_recruitment::recruitment::get_unit_ratio(), mp_sync::get_user_choice(), mp_sync::get_user_choice_multiple_sides(), ai::formula_ai::get_value(), wfl::attack_map_callable::get_value(), wfl::gamestate_callable::get_value(), wfl::unit_callable::get_value(), actions::get_village(), ai::ai_default_rca::get_villages_phase::get_villages(), wb::has_actions(), wb::manager::has_actions(), game_events::builtin_conditions::have_unit(), ai::helper_advance_unit(), ai::helper_check_village(), ai::helper_place_unit(), wb::hide_all_plans(), game_display::highlight_hex(), ai::impl_ai_aspect_get(), impl_merge_terrain(), impl_side_get(), unit::init(), play_controller::init(), wb::move::init(), game_lua_kernel::intf_find_vision_range(), intf_terrain_mask(), intf_terrainmap_get(), intf_unit_defense(), intf_unit_jamming_cost(), intf_unit_movement_cost(), intf_unit_vision_cost(), unit::invisible(), ai::ai_default_rca::aspect_attacks::is_allowed_enemy(), ai::default_recruitment::recruitment::is_enemy_in_radius(), team::knows_about_team(), wb::highlighter::last_action_redraw(), ai::readonly_context_impl::leader_can_reach_keep(), ai_testing::log_game_end(), ai_testing::log_game_start(), ai_testing::log_turn(), ai::lua_sticky_candidate_action_wrapper::lua_sticky_candidate_action_wrapper(), luaW_pushfaivariant(), unit::mark_clone(), pathfind::mark_route(), wb::move::move(), ai::ai_default_rca::move_to_targets_phase::move_group(), actions::move_unit_and_record(), wb::manager::on_change_controller(), wb::manager::on_mouseover_change(), game_events::filter_unit::operator()(), game_events::filter_attack::operator()(), wb::manager::options_dlg(), wb::path_cost(), pathfind::paths::paths(), actions::place_recruit(), playsingle_controller::play_scenario_main_loop(), unit_creator::post_create(), wb::manager::post_delete_action(), wb::manager::post_draw(), ai::readonly_context_impl::power_projection(), wb::mapbuilder::pre_build(), wb::manager::pre_draw(), image::prep_minimap_for_rendering(), game_events::wml_event_pump::process_event(), wb::manager::process_network_data(), lua_unit::put_map(), ai::ai_default_rca::move_to_targets_phase::rate_group(), ai::ai_default_rca::aspect_attacks_base::rate_terrain(), ai::default_ai_context_impl::rate_terrain(), ai::readonly_context_impl::readonly_context_impl(), actions::recalculate_fog(), ai::readonly_context_impl::recalculate_move_maps(), wb::recall::recall(), wb::side_actions::remove_action(), wb::move::remove_temp_modifier(), wb::recall::remove_temp_modifier(), wb::suppose_dead::remove_temp_modifier(), unit_display::unit_mover::replace_temporary(), play_controller::reset_gamestate(), actions::shroud_clearing_action::return_village(), wb::manager::send_network_data(), gui2::dialogs::attack_predictions::set_data(), wb::highlighter::set_mouseover_hex(), wb::manager::set_planned_unit_map(), set_scontext_synced_base::set_scontext_synced_base(), ai::formula_ai::shortest_path_calculator(), ai::ai_default_rca::move_to_targets_phase::should_retreat(), ai::ai_default_rca::retreat_phase::should_retreat(), team::shrouded(), ai::simulated_attack(), ai::simulated_move(), ai::simulated_recall(), ai::simulated_recruit(), ai::simulated_stopunit(), attack_type::special_active_impl(), ai::readonly_context_impl::suitable_keep(), wb::suppose_dead::suppose_dead(), SYNCED_COMMAND_HANDLER_FUNCTION(), actions::shroud_clearing_action::take_village(), pathfind::teleport_map::teleport_map(), ai::move_result::test_route(), actions::undo_list::undo(), actions::undo::dismiss_action::undo(), actions::undo::move_action::undo(), actions::undo::recall_action::undo(), actions::undo::recruit_action::undo(), wb::manager::unit_has_actions(), ai::default_recruitment::recruitment::update_average_local_cost(), ai::default_recruitment::recruitment::update_important_hexes(), user_choice_manager::update_local_choice(), ai::default_recruitment::recruitment::update_own_units_count(), wb::manager::update_plan_hiding(), ai::default_recruitment::recruitment::update_scouts_wanted(), user_choice_manager::user_choice_manager(), validate_side(), verify_and_clear_global_variable(), verify_and_get_global_variable(), verify_and_set_global_variable(), wb::viewer_actions(), pathfind::vision_path::vision_path(), game_events::WML_HANDLER_FUNCTION(), and unit_movement_resetter::~unit_movement_resetter().

◆ gamedata

game_data * resources::gamedata = nullptr

◆ lua_kernel

game_lua_kernel * resources::lua_kernel = nullptr

◆ persist

persist_manager * resources::persist = nullptr

◆ recorder

replay * resources::recorder = nullptr

◆ simulation_

bool resources::simulation_ = false

◆ soundsources

soundsource::manager * resources::soundsources = nullptr

◆ tod_manager

extern::tod_manager * resources::tod_manager = nullptr

◆ tunnels

pathfind::manager * resources::tunnels = nullptr

◆ undo_stack

actions::undo_list * resources::undo_stack = nullptr

◆ whiteboard

std::shared_ptr< wb::manager > resources::whiteboard = std::shared_ptr<wb::manager>()