The Battle for Wesnoth  1.13.11+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
 
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

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(), quit_confirmation::default_prompt(), 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(), wb::manager::should_clear_undo(), preferences::show_theme_dialog(), hotkey::command_executor::surrender_game(), 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(), ai::ai_default_rca::move_leader_to_keep_phase::evaluate(), wfl::attack_candidate_action::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(), impl_unit_set(), 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
bool resources::simulation_ = false
soundsource::manager * resources::soundsources = nullptr

Definition at line 27 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
std::shared_ptr< wb::manager > resources::whiteboard = std::shared_ptr<wb::manager>()