The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 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"}
 

Detailed Description

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

Function Documentation

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

Variable Documentation

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"}