14 #ifndef GAME_PREFERENCES_HPP_INCLUDED
15 #define GAME_PREFERENCES_HPP_INCLUDED
79 const std::vector<game_config::server_info>&
server_list();
void set_password(const std::string &password)
void set_hide_whiteboard(bool value)
void set_campaign_server(const std::string &host)
void set_village_support(int value)
void set_wrap_password(bool wrap)
void set_show_haloes(bool value)
acquaintance(const config &cfg)
std::string random_faction_mode()
static void encounter_recallable_units(const std::vector< team > &teams)
unsigned int get_ping_timeout()
void set_countdown_action_bonus(int value)
void set_countdown_turn_bonus(int value)
void set_shroud(bool value)
void set_countdown_init_time(int value)
std::string campaign_server()
void set_mp_server_warning_disabled(int value)
bool wrap_login()
Returns whether the MP username is stored wrapped in markers.
void set_remember_password(bool remember)
void set_show_floating_labels(bool value)
void set_options(const config &values)
bool wrap_password()
Returns whether the password is stored wrapped in markers.
const std::map< std::string, acquaintance > & get_acquaintances()
bool is_campaign_completed(const std::string &campaign_id)
const int INFINITE_AUTO_SAVES
void set_show_side_colors(bool value)
std::string network_host()
void load_from_config(const config &cfg)
void parse_admin_authentication(const std::string &sender, const std::string &message)
void set_login(const std::string &username)
void _set_lobby_joins(int show)
void set_chat_lines(int lines)
std::string status_
status (e.g., "friend", "ignore")
void set_random_faction_mode(const std::string &value)
void set_network_host(const std::string &host)
void set_countdown(bool value)
bool remove_acquaintance(const std::string &nick)
void set_interrupt_when_ally_sighted(bool value)
int countdown_init_time()
void set_registered_users_only(bool value)
void set_max_wml_menu_items(int max)
GLboolean GLenum GLenum GLvoid * values
void set_mp_server_program_name(const std::string &path)
This module controls the multiplayer lobby.
static std::vector< team > *& teams
void set_chat_message_aging(const int aging)
This class stores all the data for a single 'side' (in game nomenclature).
void set_turn_dialog(bool ison)
int countdown_turn_bonus()
void set_level_type(int value)
void set_custom_command(const std::string &command)
void set_save_replays(bool value)
bool is_friend(const std::string &nick)
void set_theme(const std::string &theme)
void encounter_map_terrain(const gamemap &map)
void encounter_start_units(const unit_map &units)
int countdown_reservoir_time()
GLsizei const GLfloat * value
void set_enable_whiteboard_mode_on_start(bool value)
std::set< t_translation::t_terrain > & encountered_terrains()
Encapsulates the map of the game.
const std::vector< game_config::server_info > & server_list()
void set_random_start_time(bool value)
const std::string & get_status() const
Modify, read and display user preferences.
bool registered_users_only()
Used to reset is_authenticated flag after disconnecting.
bool show_all_units_in_help()
void set_blindfold_replay(bool value)
void set_message_private(bool value)
bool is_ignored(const std::string &nick)
void set_chat_timestamping(bool value)
void show(CVideo &video, const std::string &window_id, const t_string &message, const tpoint &mouse)
Shows a tip.
void set_level(const std::string &value)
bool add_friend(const std::string &nick, const std::string ¬es)
bool add_ignore(const std::string &nick, const std::string &reason)
admin_authentication_reset()
Default constructor, defined out of line to work around a warning in gcc 4.5.2.
void set_allow_observers(bool value)
std::vector< std::string > * get_history(const std::string &id)
Returns a pointer to the history vector associated with given id making a new one if it doesn't exist...
const std::string & get_notes() const
int mp_server_warning_disabled()
std::string get_mp_server_program_name()
bool interrupt_when_ally_sighted()
void set_delete_saves(bool value)
void add_completed_campaign(const std::string &campaign_id, const std::string &difficulty_level)
void set_wrap_login(bool wrap)
void encounter_all_content(const game_board &gameboard_)
void set_skip_mp_replay(bool value)
std::set< std::string > & encountered_units()
std::map< std::string, std::string > get_acquaintances_nice(const std::string &filter)
const std::string & get_nick() const
void set_turns(int value)
void set_autosavemax(int value)
compression::format save_compression_format()
void set_show_all_units_in_help(bool value)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
bool show_floating_labels()
const std::vector< std::string > & modifications(bool mp)
std::string notes_
notes on the acquaintance
std::string get_chat_timestamp(const time_t &t)
void set_modifications(const std::vector< std::string > &value, bool mp)
bool enable_whiteboard_mode_on_start()
int countdown_action_bonus()
void set_show_ai_moves(bool value)
Container associating units to locations.
GLsizei GLenum GLuint GLuint GLsizei char * message
bool parse_should_show_lobby_join(const std::string &sender, const std::string &message)
void set_era(const std::string &value)
void set_shuffle_sides(bool value)
void set_ask_delete_saves(bool value)
void encounter_recruitable_units(const std::vector< team > &teams)
A config object defines a single node in a WML file, with access to child nodes.
void set_countdown_reservoir_time(int value)
std::string custom_command()
void set_xp_modifier(int value)
GLsizei const GLcharARB ** string
void set_village_gold(int value)
void set_use_map_settings(bool value)
~admin_authentication_reset()
acquaintance(const std::string &nick, const std::string &status, const std::string ¬es)
std::string nick_
acquaintance's MP nick