The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
 
game_displayscreen = nullptr
 
soundsource::managersoundsources = nullptr
 
replayrecorder = nullptr
 
::tod_managertod_manager = nullptr
 
fake_unit_managerfake_units = nullptr
 
pathfind::managertunnels = nullptr
 
actions::undo_listundo_stack = nullptr
 
unit_mapunits = nullptr
 
std::shared_ptr< wb::managerwhiteboard = std::shared_ptr<wb::manager>()
 
game_classificationclassification = nullptr
 
bool simulation_ = false
 

Variable Documentation

game_classification * resources::classification = nullptr
play_controller * resources::controller = nullptr

Definition at line 21 of file resources.cpp.

Referenced by replay::add_synced_command(), synced_context::ask_server_choice(), calculate_healing(), wb::move::calculate_move_cost(), wb::manager::can_enable_execution_hotkeys(), wb::manager::can_modify_game_state(), team::change_controller_by_wml(), turn_info::change_side_controller(), clear_resources(), actions::shroud_clearer::clear_unit(), replay_network_sender::commit_and_sync(), wb::manager::contextual_delete(), wb::manager::contextual_execute(), wb::manager::create_temp_move(), wb::current_side_actions(), ai::attack_result::do_execute(), do_replay(), do_replay_handle(), turn_info::do_save(), wb::attack::execute(), wb::move::execute(), wb::recruit::execute(), game_events::wml_event_pump::filter_event(), get_global_variable(), replay_helper::get_init_side(), game_events::wmi_manager::get_items(), mp_sync::get_user_choice(), replay::init_side(), side_filter::match_internal(), actions::move_unit_and_record(), wb::manager::on_mouseover_change(), play_controller::play_controller(), wb::mapbuilder::pre_build(), gui2::dialogs::unit_recruit::pre_show(), gui2::dialogs::game_stats::pre_show(), replay::process_error(), turn_info::process_network_data(), display::redraw_everything(), display::refresh_report(), 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(), gui2::unit_preview_pane::set_displayed_type(), preferences::show_theme_dialog(), turn_info::sync_network(), replay_network_sender::sync_non_undoable(), SYNCED_COMMAND_HANDLER_FUNCTION(), actions::shroud_clearing_action::take_village(), 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_unit_manager * resources::fake_units = nullptr
filter_context * resources::filter_con = nullptr
game_events::manager * resources::game_events = nullptr
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(), advance_unit_at(), map_labels::all_categories(), team::allied_human_teams(), ai::ai_default_rca::aspect_attacks_base::analyze_targets(), 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::recall::check_validity(), wb::move::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(), unit::clone(), 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(), 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(), events::console_handler::do_control(), ai::attack_result::do_execute(), ai::move_result::do_execute(), ai::stopunit_result::do_execute(), set_scontext_synced::do_final_checkup(), events::console_handler::do_inspect(), ai::stage_unit_formulas::do_play_stage(), do_replay_handle(), wb::recall::draw_hex(), wb::manager::draw_hex(), game_display::draw_hex(), game_display::draw_movement_info(), pathfind::enemy_zoc(), ai::ai_default_rca::goto_phase::evaluate(), ai::ai_default_rca::move_leader_to_goals_phase::evaluate(), wfl::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::lua_sticky_candidate_action_wrapper::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::formula_ai::evaluate_candidate_action(), wb::attack::execute(), wb::recall::execute(), wb::move::execute(), wb::recruit::execute(), 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::attack_analysis::execute_self(), wfl::set_unit_var_callable::execute_self(), game_events::wml_event_pump::filter_event(), 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(), play_controller::finish_side_turn(), 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(), unit::get_abilities(), ai::default_recruitment::recruitment::get_cost_map_of_side(), ai::default_recruitment::recruitment::get_estimated_income(), ai::default_recruitment::recruitment::get_estimated_village_gain(), tod_manager::get_illuminated_time_of_day(), 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(), pathfind::get_teleport_locations(), wb::manager::get_temp_move_unit(), gui2::dialogs::get_title_suffix(), wb::suppose_dead::get_unit(), game_events::entity_location::get_unit(), wb::move::get_unit(), ai::move_result::get_unit(), ai::stopunit_result::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(), wfl::attack_map_callable::get_value(), ai::formula_ai::get_value(), actions::get_village(), ai::ai_default_rca::get_villages_phase::get_villages(), image::getMinimap(), 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_side_get(), wb::move::init(), play_controller::init(), 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(), 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(), 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(), gui2::dialogs::unit_list::pre_show(), game_events::wml_event_pump::process_event(), turn_info::process_network_data(), 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::recall::remove_temp_modifier(), wb::suppose_dead::remove_temp_modifier(), wb::move::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(), campaign_controller::show_carryover_message(), team::shrouded(), ai::simulated_attack(), ai::simulated_move(), ai::simulated_recall(), ai::simulated_recruit(), ai::simulated_stopunit(), 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::recruit_action::undo(), actions::undo::recall_action::undo(), actions::undo::dismiss_action::undo(), actions::undo::move_action::undo(), actions::undo_list::undo(), unit::unit(), 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().

game_data * resources::gamedata = nullptr
game_lua_kernel * resources::lua_kernel = nullptr
persist_manager * resources::persist = nullptr
replay * resources::recorder = nullptr
game_display * resources::screen = nullptr

Definition at line 27 of file resources.cpp.

Referenced by actions::undo_list::apply_shroud_changes(), wb::recall::apply_temp_modifier(), wb::recruit::apply_temp_modifier(), calculate_healing(), wb::move::calculate_move_cost(), chat_message(), actions::shroud_clearer::clear_loc(), clear_resources(), actions::shroud_clearer::clear_unit(), wb::manager::create_temp_move(), ai::readonly_context_impl::diagnostic(), ai::formula_ai::display_message(), do_replay(), do_replay_handle(), display::draw_all_panels(), help::help_text_area::draw_contents(), wb::recall::draw_hex(), wb::attack::draw_hex(), wb::recruit::draw_hex(), wb::suppose_dead::draw_hex(), wb::move::draw_hex(), display::draw_init(), display::draw_invalidated(), display::draw_minimap(), wb::draw_numbers(), draw_panel(), display::drawing_buffer_commit(), wb::side_actions::execute_net_cmd(), game_events::wml_event_pump::flush_messages(), actions::get_village(), image::getMinimap(), wb::ghost_owner_unit(), wb::highlighter::highlight(), wb::attack::init(), wb::suppose_dead::init(), play_controller::init(), game_lua_kernel::intf_label(), game_lua_kernel::intf_redraw(), wb::attack::invalidate(), actions::shroud_clearer::invalidate_after_clear(), gui2::dialogs::label_settings::label_settings(), theme::object::location(), ai::readonly_context_impl::log_message(), pathfind::mark_route(), wb::manager::on_gamestate_change(), game_events::wml_event_pump::operator()(), actions::place_recruit(), unit_creator::post_create(), gui2::dialogs::mp_change_control::pre_show(), game_events::wml_event_pump::process_event(), turn_info::process_network_data(), game_events::wml_event_pump::raise(), actions::recalculate_fog(), actions::recall_unit(), actions::recruit_unit(), actions::undo_list::redo(), wb::attack::redraw(), wb::recall::redraw(), wb::recruit::redraw(), wb::suppose_dead::redraw(), wb::move::redraw(), halo::halo_impl::effect::render(), wb::manager::save_recall(), wb::manager::save_recruit(), wb::manager::save_temp_attack(), display::scroll(), wfl::formula_debugger::show_gui(), ai::default_recruitment::recruitment::show_important_hexes(), preferences::show_theme_dialog(), game_events::wml_event_pump::show_wml_messages(), SYNCED_COMMAND_HANDLER_FUNCTION(), gui::floating_textbox::tab(), actions::undo::recruit_action::undo(), actions::undo::recall_action::undo(), actions::undo::move_action::undo(), actions::undo_list::undo(), wb::unghost_owner_unit(), wb::highlighter::unhighlight(), halo::halo_impl::effect::unrender(), wb::viewer_actions(), wb::viewer_side(), wb::viewer_team(), pathfind::vision_path::vision_path(), wb::highlighter::highlight_main_visitor::visit(), wb::highlighter::highlight_secondary_visitor::visit(), wb::highlighter::unhighlight_visitor::visit(), game_events::WML_HANDLER_FUNCTION(), wb::highlighter::~highlighter(), and wb::suppose_dead::~suppose_dead().

bool resources::simulation_ = false
soundsource::manager * resources::soundsources = nullptr

Definition at line 28 of file resources.cpp.

Referenced by clear_resources(), and play_controller::init_managers().

extern::tod_manager * resources::tod_manager = nullptr
pathfind::manager * resources::tunnels = nullptr
actions::undo_list * resources::undo_stack = nullptr
unit_map * resources::units = nullptr

Definition at line 34 of file resources.cpp.

Referenced by unit::ability_active(), actions::actor_sighted(), ai::target_unit_goal::add_targets(), ai::protect_goal::add_targets(), attack_unit_and_advance(), battle_context_unit_stats::battle_context_unit_stats(), ai::readonly_context_impl::best_defensive_position(), calculate_healing(), ai::readonly_context_impl::calculate_moves(), ai::readonly_context_impl::calculate_possible_moves(), editor::editor_controller::can_execute_command(), editor::editor_controller::change_unit_id(), actions::check_recall_location(), actions::check_recruit_location(), wb::attack::check_validity(), wb::recall::check_validity(), wb::recruit::check_validity(), wb::move::check_validity(), wb::suppose_dead::check_validity(), battle_context::choose_attacker_weapon(), battle_context::choose_defender_weapon(), clear_resources(), actions::clear_shroud(), editor::mouse_action_unit::click_left(), create_jamming_map(), wfl::gamestate::DEFINE_WFL_FUNCTION(), ai::ai_default_rca::get_villages_phase::dispatch_complex(), 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(), do_replay_handle(), editor::mouse_action_unit::drag_end_left(), ai::default_recruitment::recruitment::evaluate(), ai::lua_sticky_candidate_action_wrapper::evaluate(), ai::formula_ai::evaluate_candidate_action(), wb::move::execute(), ai::default_recruitment::recruitment::execute(), ai::ai_default_rca::leader_shares_keep_phase::execute(), ai::attack_analysis::execute_self(), wfl::set_unit_var_callable::execute_self(), savegame::extract_summary_from_config(), game_events::wml_event_pump::filter_event(), wb::find_backup_leader(), wb::find_recruiter(), pathfind::find_vacant_tile(), ai::ai_default_rca::get_villages_phase::find_villages(), actions::shroud_clearer::fire_events(), unit_filter::first_match_on_map(), test_utils::game_config_manager::game_config_manager(), help::generate_ability_topics(), help::generate_weapon_special_topics(), unit::get_abilities(), unit::get_ability_bool(), ai::default_recruitment::recruitment::get_cost_map_of_side(), actions::get_recalls(), gui2::dialogs::get_title_suffix(), ai::move_result::get_unit(), ai::stopunit_result::get_unit(), ai::default_recruitment::recruitment::get_unit_ratio(), wfl::attack_map_callable::get_value(), ai::formula_ai::get_value(), game_events::builtin_conditions::have_unit(), ai::impl_ai_aspect_get(), impl_side_get(), play_controller::init(), ai::default_recruitment::recruitment::is_enemy_in_radius(), ai::readonly_context_impl::leader_can_reach_keep(), ai::lua_sticky_candidate_action_wrapper::lua_sticky_candidate_action_wrapper(), pathfind::mark_route(), wb::move::move(), editor::mouse_action_unit::move(), actions::move_unit_and_record(), editor::editor_action_unit_delete::perform(), editor::editor_action_unit_delete::perform_without_undo(), editor::editor_action_unit_replace::perform_without_undo(), editor::editor_action_unit_facing::perform_without_undo(), wb::mapbuilder::pre_build(), game_events::wml_event_pump::process_event(), lua_unit::put_map(), actions::recalculate_fog(), editor::map_context_refresher::refresh(), wb::suppose_dead::remove_temp_modifier(), wb::move::remove_temp_modifier(), editor::editor_controller::rename_unit(), play_controller::reset_gamestate(), unit_display::reset_helpers(), gui2::dialogs::attack_predictions::set_data(), wb::manager::set_planned_unit_map(), game_config_manager::set_unit_data(), gui2::dialogs::show_unit_list(), gui2::dialogs::team_mode_controller::show_units(), gui2::tip_of_the_day::shuffle(), attack_type::special_active(), ai::readonly_context_impl::suitable_keep(), wb::suppose_dead::suppose_dead(), SYNCED_COMMAND_HANDLER_FUNCTION(), pathfind::teleport_map::teleport_map(), actions::undo::recruit_action::undo(), actions::undo::recall_action::undo(), actions::undo::move_action::undo(), editor::editor_controller::unit_description(), ai::default_recruitment::recruitment::update_important_hexes(), ai::default_recruitment::recruitment::update_own_units_count(), game_events::WML_HANDLER_FUNCTION(), editor::editor_controller::~editor_controller(), and unit_movement_resetter::~unit_movement_resetter().

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