The Battle for Wesnoth  1.13.4+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
 
std::vector< team > * teams = nullptr
 
replayrecorder = nullptr
 
::tod_managertod_manager = nullptr
 
fake_unit_managerfake_units = nullptr
 
pathfind::managertunnels = nullptr
 
actions::undo_listundo_stack = nullptr
 
unit_mapunits = nullptr
 
boost::shared_ptr< wb::managerwhiteboard = boost::shared_ptr<wb::manager>()
 
game_classificationclassification = nullptr
 
const mp_game_settingsmp_settings = 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::recruit::execute(), wb::move::execute(), game_events::t_pump::filter_event(), get_global_variable(), replay_helper::get_init_side(), game_events::wmi_container::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::tunit_recruit::pre_show(), replay::process_error(), turn_info::process_network_data(), 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::tunit_preview_pane::set_displayed_type(), 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 unit::ability_active(), ai::ai_default_rca::move_to_targets_phase::access_points(), actions::actor_sighted(), battle_context_unit_stats::battle_context_unit_stats(), ai::readonly_context_impl::best_defensive_position(), calculate_healing(), ai::readonly_context_impl::calculate_moves(), wb::move::calculate_new_route(), wb::manager::can_modify_game_state(), wb::move::check_validity(), ai::ai_default_rca::move_to_targets_phase::choose_move(), actions::shroud_clearer::clear_loc(), clear_resources(), unit::clone(), game_logic::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(), 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(), set_scontext_synced::do_final_checkup(), 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(), ai::ai_default_rca::move_leader_to_keep_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::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(), wb::find_backup_leader(), wb::find_recruiter(), pathfind::find_routes(), ai::default_ai_context_impl::find_targets(), pathfind::find_vacant_tile(), ai::ai_default_rca::get_villages_phase::find_villages(), play_controller::finish_side_turn(), pathfind::full_cost_map::full_cost_map(), wb::future_visible_unit(), ai::default_recruitment::recruitment::get_estimated_income(), ai::default_recruitment::recruitment::get_estimated_village_gain(), ai::formula_ai::get_keeps(), pathfind::full_cost_map::get_pair_at(), actions::get_recalls(), actions::get_recruits(), actions::get_sides_not_seeing(), synced_context::get_unit_id_diff(), battle_prediction_pane::get_unit_strings(), ai::formula_ai::get_value(), actions::get_village(), image::getMinimap(), ai::helper_place_unit(), game_display::highlight_hex(), play_controller::init(), unit::invisible(), ai_testing::log_game_end(), ai_testing::log_turn(), pathfind::mark_route(), ai::ai_default_rca::move_to_targets_phase::move_group(), wb::path_cost(), actions::place_recruit(), unit_creator::post_create(), ai::readonly_context_impl::power_projection(), wb::mapbuilder::pre_build(), turn_info::process_network_data(), 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::undo_list::redo(), play_controller::reset_gamestate(), actions::shroud_clearing_action::return_village(), 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(), ai::simulated_move(), ai::readonly_context_impl::suitable_keep(), SYNCED_COMMAND_HANDLER_FUNCTION(), actions::shroud_clearing_action::take_village(), ai::move_result::test_route(), actions::undo_list::undo(), unit::unit(), ai::default_recruitment::recruitment::update_average_local_cost(), ai::default_recruitment::recruitment::update_important_hexes(), ai::default_recruitment::recruitment::update_scouts_wanted(), and game_events::WML_HANDLER_FUNCTION().

game_data * resources::gamedata = nullptr
game_lua_kernel * resources::lua_kernel = nullptr
const mp_game_settings * resources::mp_settings = 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 dialogs::advance_unit_dialog(), dialogs::animate_unit_advancement(), actions::undo_list::apply_shroud_changes(), wb::recall::apply_temp_modifier(), wb::recruit::apply_temp_modifier(), attack_prediction_displayer::button_pressed(), calculate_healing(), wb::move::calculate_move_cost(), chat_message(), actions::shroud_clearer::clear_loc(), clear_resources(), actions::shroud_clearer::clear_unit(), tooltips::click(), wb::manager::create_temp_move(), CreateTargetFromWindow(), ai::readonly_context_impl::diagnostic(), ai::formula_ai::display_message(), do_replay(), do_replay_handle(), display::draw_all_panels(), gui::slider::draw_contents(), mp::wait::leader_preview_pane::draw_contents(), dialogs::unit_preview_pane::draw_contents(), help::help_text_area::draw_contents(), wb::attack::draw_hex(), wb::recall::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(), battle_prediction_pane::draw_unit(), display::drawing_buffer_commit(), wb::side_actions::execute_net_cmd(), font::floating_label_context::floating_label_context(), game_events::t_pump::flush_messages(), actions::get_village(), image::getMinimap(), wb::ghost_owner_unit(), GPU_Init(), GPU_InitRendererByID(), wb::highlighter::highlight(), wb::attack::init(), wb::suppose_dead::init(), play_controller::init(), Init(), game_lua_kernel::intf_label(), game_lua_kernel::intf_redraw(), wb::attack::invalidate(), actions::shroud_clearer::invalidate_after_clear(), gui::dialog::layout(), theme::object::location(), ai::readonly_context_impl::log_message(), MakeCurrent(), pathfind::mark_route(), wb::manager::on_gamestate_change(), game_events::t_pump::operator()(), wb::manager::options_dlg(), actions::place_recruit(), unit_creator::post_create(), game_events::t_pump::process_event(), dialogs::units_list_preview_pane::process_event(), dialogs::unit_types_preview_pane::process_event(), turn_info::process_network_data(), game_events::t_pump::raise(), actions::recalculate_fog(), actions::recall_unit(), actions::recruit_unit(), actions::undo::recruit_action::redo(), actions::undo::recall_action::redo(), actions::undo::move_action::redo(), actions::undo_list::redo(), wb::recall::redraw(), wb::attack::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(), SetWindowResolution(), about::show_about(), game_logic::formula_debugger::show_gui(), help::show_help(), ai::default_recruitment::recruitment::show_important_hexes(), gui2::side_controller::show_nicks_list(), dialogs::show_objectives(), game_events::t_pump::show_wml_messages(), SYNCED_COMMAND_HANDLER_FUNCTION(), gui::floating_textbox::tab(), gui2::tlabel_settings::tlabel_settings(), 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(), default_map_generator::user_config(), wb::viewer_actions(), wb::viewer_side(), wb::viewer_team(), wb::highlighter::highlight_main_visitor::visit(), wb::highlighter::highlight_secondary_visitor::visit(), wb::highlighter::unhighlight_visitor::visit(), wait_prestart(), unit_display::wml_animation(), unit_display::wml_animation_internal(), game_events::WML_HANDLER_FUNCTION(), font::floating_label_context::~floating_label_context(), 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().

std::vector< team > * resources::teams = nullptr

Definition at line 29 of file resources.cpp.

Referenced by unit::ability_active(), ai::ai_default_rca::move_to_targets_phase::access_points(), wb::action::action(), scoped_recall_unit::activate(), actions::actor_sighted(), pathfind::full_cost_map::add_unit(), map_labels::all_categories(), unit::apply_builtin_effect(), wb::recall::apply_temp_modifier(), wb::recruit::apply_temp_modifier(), battle_context_unit_stats::battle_context_unit_stats(), wb::mapbuilder::build_map(), ai::readonly_context_impl::calculate_moves(), wb::move::calculate_new_route(), wb::manager::can_modify_game_state(), can_see(), actions::check_recruit_location(), wb::attack::check_validity(), wb::recall::check_validity(), wb::move::check_validity(), clear_resources(), gui2::tgamestate_inspector::controller::controller(), ai::default_ai_context_impl::count_free_hexes_in_castle(), ai::readonly_context_impl::current_team(), ai::readwrite_context_impl::current_team_w(), ai::ai_default_rca::aspect_attacks_base::do_attack_analysis(), ai::default_recruitment::recruitment::do_combat_analysis(), events::console_handler::do_control(), do_replay_handle(), wb::recall::draw_hex(), wb::manager::draw_hex(), ai::ai_default_rca::goto_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::leader_shares_keep_phase::evaluate(), wb::recall::execute(), wb::recruit::execute(), wb::find_action_at(), wb::find_actions_of(), pathfind::find_routes(), ai::default_ai_context_impl::find_targets(), ai::ai_default_rca::get_villages_phase::find_villages(), wb::for_each_action(), wb::future_visible_unit(), lua_unit::get(), unit::get_abilities(), unit::get_ability_bool(), ai::default_recruitment::recruitment::get_estimated_village_gain(), ai::action_result::get_my_team(), actions::get_recalls(), lua_unit::get_shared(), actions::get_sides_not_seeing(), wb::manager::get_spent_gold_for(), ai::default_recruitment::recruitment::get_unit_ratio(), mp_sync::get_user_choice(), mp_sync::get_user_choice_multiple_sides(), ai::formula_ai::get_value(), actions::get_village(), gui2::team_mode_controller::handle_stuff_list_selection(), wb::has_actions(), wb::manager::has_actions(), ai::helper_check_village(), wb::hide_all_plans(), wb::move::init(), play_controller::init(), wb::highlighter::last_action_redraw(), editor::map_context::load_scenario(), ai_testing::log_game_end(), ai_testing::log_game_start(), wb::manager::on_change_controller(), wb::manager::options_dlg(), wb::path_cost(), pathfind::paths::paths(), wb::manager::post_delete_action(), wb::mapbuilder::pre_build(), turn_info::process_network_data(), wb::manager::process_network_data(), wb::recall::recall(), editor::map_context_refresher::refresh(), wb::recall::remove_temp_modifier(), play_controller::reset_gamestate(), wb::manager::send_network_data(), wb::highlighter::set_mouseover_hex(), ai::formula_ai::shortest_path_calculator(), campaign_controller::show_carryover_message(), gui2::side_controller::show_nicks_list(), gui2::tmp_change_control::controller::show_sides_list(), ai::move_result::test_route(), wb::manager::unit_has_actions(), ai::default_recruitment::recruitment::update_important_hexes(), user_choice_manager::update_local_choice(), wb::manager::update_plan_hiding(), ai::default_recruitment::recruitment::update_scouts_wanted(), user_choice_manager::user_choice_manager(), verify_and_clear_global_variable(), verify_and_get_global_variable(), verify_and_set_global_variable(), game_events::WML_HANDLER_FUNCTION(), and editor::editor_controller::~editor_controller().

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 35 of file resources.cpp.

Referenced by unit::ability_active(), ai::ai_default_rca::move_to_targets_phase::access_points(), actions::actor_sighted(), ai::target_unit_goal::add_targets(), ai::protect_goal::add_targets(), replay::add_unit_checksum(), advance_unit(), advance_unit_at(), dialogs::advance_unit_dialog(), ai::ai_default_rca::aspect_attacks_base::analyze_targets(), dialogs::animate_unit_advancement(), 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(), ai::readonly_context_impl::check_attack_action(), actions::check_recall_location(), actions::check_recruit_location(), wb::recall::check_validity(), wb::attack::check_validity(), wb::recruit::check_validity(), wb::move::check_validity(), wb::suppose_dead::check_validity(), ai::ai_default_rca::move_to_targets_phase::choose_move(), clear_resources(), actions::clear_shroud(), actions::shroud_clearer::clear_unit(), editor::mouse_action_unit::click_left(), ai::default_ai_context_impl::count_free_hexes_in_castle(), create_jamming_map(), ai::ai_default_rca::get_villages_phase::dispatch_complex(), 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(), ai::stage_unit_formulas::do_play_stage(), do_replay_handle(), editor::mouse_action_unit::drag_end_left(), ai::ai_default_rca::goto_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::lua_sticky_candidate_action_wrapper::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::formula_ai::evaluate_candidate_action(), wb::attack::execute(), wb::move::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(), editor::editor_controller::execute_command(), ai::formula_ai::execute_variant(), game_events::t_pump::filter_event(), wb::find_backup_leader(), wb::find_recruiter(), ai::default_ai_context_impl::find_targets(), pathfind::find_vacant_tile(), ai::ai_default_rca::get_villages_phase::find_villages(), actions::shroud_clearer::fire_events(), basic_unit_filter_impl::first_match_on_map(), ai::ai_default_rca::move_to_targets_phase::form_group(), test_utils::game_config_manager::game_config_manager(), help::generate_ability_topics(), help::generate_weapon_special_topics(), lua_unit::get(), unit::get_abilities(), unit::get_ability_bool(), editor::editor_controller::get_action_state(), ai::default_recruitment::recruitment::get_cost_map_of_side(), actions::get_recalls(), actions::get_recruits(), lua_unit::get_shared(), pathfind::teleport_group::get_teleport_pair(), wb::manager::get_temp_move_unit(), 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(), wb::highlighter::get_unit_map(), ai::default_recruitment::recruitment::get_unit_ratio(), battle_prediction_pane::get_unit_strings(), game_logic::attack_map_callable::get_value(), ai::formula_ai::get_value(), ai::ai_default_rca::get_villages_phase::get_villages(), gui2::unit_mode_controller::handle_stuff_list_selection(), gui2::team_mode_controller::handle_stuff_list_selection(), ai::helper_advance_unit(), ai::helper_check_village(), ai::helper_place_unit(), ai::impl_ai_aspect_get(), play_controller::init(), basic_unit_filter_impl::internal_matches_filter(), 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(), luaW_pushfaivariant(), pathfind::mark_route(), wb::move::move(), editor::mouse_action_unit::move(), ai::ai_default_rca::move_to_targets_phase::move_group(), actions::move_unit_and_record(), wb::manager::on_mouseover_change(), 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(), actions::place_recruit(), wb::manager::post_draw(), ai::readonly_context_impl::power_projection(), wb::mapbuilder::pre_build(), wb::manager::pre_draw(), game_events::t_pump::process_event(), lua_unit::put_map(), ai::ai_default_rca::move_to_targets_phase::rate_group(), actions::recalculate_fog(), ai::readonly_context_impl::recalculate_move_maps(), dialogs::recall_dialog(), actions::undo::move_action::redo(), 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(), wb::manager::set_planned_unit_map(), game_config_manager::set_unit_data(), ai::formula_ai::shortest_path_calculator(), gui2::unit_mode_controller::show_stuff_list(), dialogs::show_unit_list(), gui2::tips::shuffle(), ai::simulated_attack(), ai::simulated_move(), ai::simulated_stopunit(), attack_type::special_active(), ai::readonly_context_impl::suitable_keep(), wb::suppose_dead::suppose_dead(), SYNCED_COMMAND_HANDLER_FUNCTION(), 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(), unit_display::wml_animation_internal(), game_events::WML_HANDLER_FUNCTION(), editor::editor_controller::~editor_controller(), and unit_movement_resetter::~unit_movement_resetter().