Variables | |
game_board * | gameboard = nullptr |
play_controller * | controller = nullptr |
game_data * | gamedata = nullptr |
filter_context * | filter_con = nullptr |
game_events::manager * | game_events = nullptr |
game_lua_kernel * | lua_kernel = nullptr |
persist_manager * | persist = nullptr |
soundsource::manager * | soundsources = nullptr |
replay * | recorder = nullptr |
::tod_manager * | tod_manager = nullptr |
fake_unit_manager * | fake_units = nullptr |
pathfind::manager * | tunnels = nullptr |
actions::undo_list * | undo_stack = nullptr |
std::shared_ptr< wb::manager > | whiteboard = std::shared_ptr<wb::manager>() |
game_classification * | classification = nullptr |
bool | simulation_ = false |
game_classification * resources::classification = nullptr |
Definition at line 34 of file resources.cpp.
Referenced by clear_resources(), savegame::autosave_savegame::create_initial_filename(), set_scontext_synced::generate_checkup(), synced_context::get_rng_for_action(), settings::get_village_gold(), game_config_manager::load_game_config(), game_config_manager::load_game_config_for_game(), game_config_manager::load_game_config_with_loadscreen(), play_controller::play_controller(), editor::context_manager::refresh_on_context_change(), and editor::editor_controller::~editor_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_internal(), 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_unit_manager * resources::fake_units = nullptr |
Definition at line 30 of file resources.cpp.
Referenced by wb::manager::create_temp_move(), display::display(), wb::recall::init(), wb::recruit::init(), game_lua_kernel::intf_find_cost_map(), load_fake_units(), wb::move::move(), unit_display::unit_mover::replace_temporary(), game_events::WML_HANDLER_FUNCTION(), display::~display(), and fake_unit_ptr::~fake_unit_ptr().
filter_context * resources::filter_con = nullptr |
Definition at line 23 of file resources.cpp.
Referenced by unit::ability_active_impl(), unit::add_modification(), wb::manager::allow_leader_to_move(), wb::any_recruiter(), game_events::wml_menu_item::can_show(), ai::config_value_translator< terrain_filter >::cfg_to_value(), clear_resources(), editor::context_manager::context_manager(), wb::find_backup_leader(), wb::find_recruiter(), ai::readonly_context_impl::get_avoid(), actions::get_recalls(), actions::get_recruits(), pathfind::teleport_group::get_teleport_pair(), game_events::builtin_conditions::have_location(), play_controller::init(), ai::target_location_goal::on_create(), ai::protect_goal::on_create(), play_controller::reset_gamestate(), attack_type::special_active_impl(), ai::lua_object< T >::to_type(), ai::variant_value_translator< terrain_filter >::variant_to_value(), editor::context_manager::~context_manager(), and editor::editor_controller::~editor_controller().
game_events::manager * resources::game_events = nullptr |
Definition at line 24 of file resources.cpp.
Referenced by actions::actor_sighted(), unit::advance_to(), advance_unit(), unit::apply_builtin_effect(), clear_resources(), events::console_handler::do_inspect(), game_events::wml_menu_item::finish_handler(), game_events::wml_menu_item::fire_event(), actions::shroud_clearer::fire_events(), team::get_village(), unit::init(), play_controller::init(), game_events::wml_menu_item::init_handler(), actions::place_recruit(), ai::manager::play_turn(), unit_creator::post_create(), play_controller::reset_gamestate(), storyscreen::story_parser::resolve_wml(), SYNCED_COMMAND_HANDLER_FUNCTION(), and game_events::wml_menu_item::update_command().
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(), 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(), 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(), ai::impl_ai_aspect_get(), impl_merge_terrain(), 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(), SIDE_GETTER(), 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(), pathfind::vision_path::vision_path(), game_events::WML_HANDLER_FUNCTION(), and unit_movement_resetter::~unit_movement_resetter().
game_data * resources::gamedata = nullptr |
Definition at line 22 of file resources.cpp.
Referenced by clear_resources(), storyscreen::controller::controller(), ai::ai_default_rca::move_leader_to_goals_phase::evaluate(), game_events::manager::execute_on_events(), unit_creator::find_location(), get_global_variable(), synced_context::get_rng_for_action(), mp_sync::get_user_choice(), user_choice_manager::get_user_choice_internal(), actions::get_village(), gui2::dialogs::preferences_dialog::handle_theme_select(), play_controller::init(), unit::mark_clone(), game_events::wml_event_pump::operator()(), game_events::filter_dynamic::operator()(), game_events::wml_event_pump::process_event(), terrain_label::read(), play_controller::reset_gamestate(), storyscreen::story_parser::resolve_wml(), scoped_wml_variable::scoped_wml_variable(), set_global_variable(), unit::set_underlying_id(), prefs::show_theme_dialog(), scoped_wml_variable::store(), SYNCED_COMMAND_HANDLER_FUNCTION(), try_get_gamedata(), synced_context::undo_blocked(), game_events::builtin_conditions::variable_matches(), wait_ingame(), game_events::WML_HANDLER_FUNCTION(), and scoped_wml_variable::~scoped_wml_variable().
game_lua_kernel * resources::lua_kernel = nullptr |
Definition at line 25 of file resources.cpp.
Referenced by unit::add_modification(), unit::advance_to(), unit::apply_builtin_effect(), ai::aspect_attacks_lua::aspect_attacks_lua(), clear_resources(), gui2::dialogs::lua_interpreter::display(), unit::init(), play_controller::init(), ai::lua_aspect< T >::lua_aspect(), ai::lua_candidate_action_wrapper::lua_candidate_action_wrapper(), ai::lua_candidate_action_wrapper_external::lua_candidate_action_wrapper_external(), ai::lua_stage_wrapper::lua_stage_wrapper(), ai::lua_goal::on_create(), game_events::wml_event_pump::operator()(), unit_creator::post_create(), game_events::wml_event_pump::process_event(), play_controller::reset_gamestate(), SYNCED_COMMAND_HANDLER_FUNCTION(), and game_events::wml_menu_item::update_command().
persist_manager * resources::persist = nullptr |
Definition at line 26 of file resources.cpp.
Referenced by clear_resources(), play_controller::play_controller(), savegame::savegame::save_game(), verify_and_clear_global_variable(), verify_and_get_global_variable(), and verify_and_set_global_variable().
replay * resources::recorder = nullptr |
Definition at line 28 of file resources.cpp.
Referenced by user_choice_manager::ask_local_choice(), synced_context::ask_server_choice(), playsingle_controller::hotkey_handler::can_execute_command(), events::menu_handler::clear_labels(), clear_resources(), do_replay_handle(), set_scontext_synced::generate_checkup(), game_lua_kernel::intf_log_replay(), events::menu_handler::label_terrain(), ai_testing::log_draw(), ai_testing::log_game_end(), ai_testing::log_game_start(), ai_testing::log_turn(), ai_testing::log_victory(), play_controller::maybe_do_init_side(), play_controller::play_controller(), replay_controller::play_side_impl(), replay_controller::recorder_at_end(), actions::undo_list::redo(), events::menu_handler::rename_unit(), playsingle_controller::hotkey_handler::replay_exit(), synced_context::run_and_store(), user_choice_manager::search_in_replay(), events::menu_handler::send_chat_message(), events::menu_handler::show_chat_log(), play_controller::start_game(), mp::start_local_game_commandline(), playsingle_controller::sync_end_turn(), and actions::undo_list::undo().
bool resources::simulation_ = false |
Definition at line 35 of file resources.cpp.
Referenced by ai::attack_result::do_execute(), ai::move_result::do_execute(), ai::recall_result::do_execute(), ai::recruit_result::do_execute(), ai::stopunit_result::do_execute(), ai::synced_command_result::do_execute(), and ai::manager::raise_user_interact().
soundsource::manager * resources::soundsources = nullptr |
Definition at line 27 of file resources.cpp.
Referenced by clear_resources(), impl_sndsrc_get(), impl_sndsrc_set(), impl_source_set(), and play_controller::init_managers().
extern::tod_manager * resources::tod_manager = nullptr |
Definition at line 29 of file resources.cpp.
Referenced by clear_resources(), combat_modifier(), wfl::gamestate::DEFINE_WFL_FUNCTION(), ai::attack_result::do_execute(), ai::idle_stage::do_play_stage(), ai::default_recruitment::recruitment::evaluate(), ai::default_recruitment::recruitment::execute(), help::generate_time_of_day_topics(), game_display::get_time_of_day(), ai::formula_ai::get_value(), wfl::gamestate_callable::get_value(), game_display::has_time_area(), play_controller::init(), ai::readonly_context_impl::is_active(), editor::map_context::load_scenario(), ai_testing::log_game_end(), ai_testing::log_turn(), game_display::new_turn(), ai::manager::play_turn(), ai::readonly_context_impl::power_projection(), editor::context_manager::refresh_on_context_change(), display::refresh_report(), play_controller::reset_gamestate(), SYNCED_COMMAND_HANDLER_FUNCTION(), ai::default_recruitment::recruitment::update_average_lawful_bonus(), game_events::WML_HANDLER_FUNCTION(), and editor::editor_controller::~editor_controller().
pathfind::manager * resources::tunnels = nullptr |
Definition at line 31 of file resources.cpp.
Referenced by clear_resources(), pathfind::get_teleport_locations(), play_controller::init(), play_controller::reset_gamestate(), pathfind::teleport_group::teleport_group(), and game_events::WML_HANDLER_FUNCTION().
actions::undo_list * resources::undo_stack = nullptr |
Definition at line 32 of file resources.cpp.
Referenced by synced_context::block_undo(), clear_resources(), ai::recall_result::do_execute(), ai::recruit_result::do_execute(), wb::side_actions::execute(), play_controller::init(), actions::recall_unit(), actions::recruit_unit(), play_controller::reset_gamestate(), synced_context::run(), wb::manager::set_active(), and SYNCED_COMMAND_HANDLER_FUNCTION().
std::shared_ptr< wb::manager > resources::whiteboard = std::shared_ptr<wb::manager>() |
Definition at line 33 of file resources.cpp.
Referenced by advance_unit(), wb::side_actions::bump_earlier(), clear_resources(), wb::side_actions::execute(), wb::side_actions::execute_net_cmd(), wb::future_map::future_map(), wb::future_map_if_active::future_map_if_active(), wb::future_visible_unit(), wb::side_actions::get_numbers(), play_controller::init(), wb::side_actions::insert_action(), game_lua_kernel::intf_erase_unit(), game_lua_kernel::intf_put_recall_unit(), game_events::wml_event_pump::operator()(), actions::place_recruit(), game_lua_kernel::put_unit_helper(), wb::side_actions::queue_action(), wb::real_map::real_map(), wb::side_actions::remove_action(), wb::side_actions::safe_erase(), set_scontext_synced_base::set_scontext_synced_base(), SYNCED_COMMAND_HANDLER_FUNCTION(), wb::side_actions::synced_enqueue(), wb::side_actions::synced_erase(), wb::side_actions::synced_insert(), wb::side_actions::synced_turn_shift(), actions::undo_list::undo(), actions::undo::recall_action::undo(), game_events::WML_HANDLER_FUNCTION(), wb::future_map::~future_map(), wb::future_map_if_active::~future_map_if_active(), and wb::real_map::~real_map().