The Battle for Wesnoth  1.17.0-dev
Functions | Variables
mp_ui_alerts Namespace Reference

This namespace provides handlers which play the sounds / notificaitons for various mp server events, depending on the preference configuration. More...

Functions

void game_created (const std::string &scenario, const std::string &name)
 
void player_joins (bool is_lobby)
 
void player_leaves (bool is_lobby)
 
void public_message (bool is_lobby, const std::string &sender, const std::string &message)
 
void friend_message (bool is_lobby, const std::string &sender, const std::string &message)
 
void private_message (bool is_lobby, const std::string &sender, const std::string &message)
 
void server_message (bool is_lobby, const std::string &sender, const std::string &message)
 
void ready_for_start ()
 
void game_has_begun ()
 
void turn_changed (const std::string &player_name)
 
bool get_def_pref_sound (const std::string &id)
 
bool get_def_pref_notif (const std::string &id)
 
bool get_def_pref_lobby (const std::string &id)
 

Variables

const std::vector< std::string > items {"player_joins", "player_leaves", "private_message", "friend_message", "public_message", "server_message", "ready_for_start", "game_has_begun", "turn_changed", "game_created"}
 

Detailed Description

This namespace provides handlers which play the sounds / notificaitons for various mp server events, depending on the preference configuration.

Function Documentation

◆ friend_message()

void mp_ui_alerts::friend_message ( bool  is_lobby,
const std::string &  sender,
const std::string &  message 
)

◆ game_created()

void mp_ui_alerts::game_created ( const std::string &  scenario,
const std::string &  name 
)

◆ game_has_begun()

void mp_ui_alerts::game_has_begun ( )

◆ get_def_pref_lobby()

bool mp_ui_alerts::get_def_pref_lobby ( const std::string &  id)

◆ get_def_pref_notif()

bool mp_ui_alerts::get_def_pref_notif ( const std::string &  id)

◆ get_def_pref_sound()

bool mp_ui_alerts::get_def_pref_sound ( const std::string &  id)

◆ player_joins()

void mp_ui_alerts::player_joins ( bool  is_lobby)

◆ player_leaves()

void mp_ui_alerts::player_leaves ( bool  is_lobby)

◆ private_message()

void mp_ui_alerts::private_message ( bool  is_lobby,
const std::string &  sender,
const std::string &  message 
)

◆ public_message()

void mp_ui_alerts::public_message ( bool  is_lobby,
const std::string &  sender,
const std::string &  message 
)

◆ ready_for_start()

void mp_ui_alerts::ready_for_start ( )

◆ server_message()

void mp_ui_alerts::server_message ( bool  is_lobby,
const std::string &  sender,
const std::string &  message 
)

◆ turn_changed()

void mp_ui_alerts::turn_changed ( const std::string &  player_name)

Variable Documentation

◆ items

const std::vector< std::string > mp_ui_alerts::items {"player_joins", "player_leaves", "private_message", "friend_message", "public_message", "server_message", "ready_for_start", "game_has_begun", "turn_changed", "game_created"}

Definition at line 54 of file mp_ui_alerts.cpp.

Referenced by halo::halo_impl::add(), ai::target_location_goal::add_targets(), ai::protect_goal::add_targets(), BOOST_AUTO_TEST_CASE(), ng::depcheck::manager::change_era_dialog(), ng::depcheck::manager::change_scenario_dialog(), gui::menu::create_help_strings(), default_map_generator_job::default_generate_map(), wfl::builtins::DEFINE_WFL_FUNCTION(), ng::depcheck::manager::disable_mods_dialog(), editor::editor_controller::do_execute_command(), game_events::wmi_manager::empty(), ng::depcheck::manager::enable_mods_dialog(), hotkey::command_executor::execute_action(), controller_base::execute_action(), cave_map_generator::cave_map_generator_job::generate_chambers(), hotkey::command_executor::get_action_state(), preprocessor_data::get_chunk(), game_events::wmi_manager::get_items(), ng::depcheck::manager::get_required_not_installed(), wfl::string_callable::get_value(), editor::context_manager::gui(), controller_base::handle_event(), editor::common_palette::handler_members(), display::init_flags_for_side_internal(), terrain_builder::load_images(), controller_base::long_touch_callback(), theme::object::modify_location(), gui2::dialogs::depcheck_select_new::post_show(), gui2::dialogs::mp_alerts_options::pre_show(), gui2::dialogs::depcheck_select_new::pre_show(), read_rect(), resolve_rect(), gui2::dialogs::revert_to_default_pref_values(), gui::button::set_label(), editor::terrain_palette::setup(), editor::editor_controller::show_menu(), play_controller::hotkey_handler::show_menu(), hotkey::command_executor::show_menu(), controller_base::show_menu(), lua_gui2::show_menu(), gui2::shrink_cache(), and editor::editor_palette< overlay >::start_num().