The Battle for Wesnoth  1.19.7+dev
Functions
mp::ui_alerts Namespace Reference

This namespace provides handlers which play the sounds / notifications 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)
 

Detailed Description

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

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 ( )

◆ 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)