The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Member Functions | Public Attributes | List of all members
mp_game_settings Struct Reference

#include <mp_game_settings.hpp>

Classes

struct  addon_version_info
 

Public Member Functions

 mp_game_settings ()
 
 mp_game_settings (const config &cfg)
 
config to_config () const
 
 MAKE_ENUM (RANDOM_FACTION_MODE,(DEFAULT, N_("Independent"))(NO_MIRROR, N_("No Mirror"))(NO_ALLY_MIRROR, N_("No Ally Mirror"))) RANDOM_FACTION_MODE random_faction_mode
 
void update_addon_requirements (const config &addon_cfg)
 

Public Attributes

std::string name
 
std::string password
 
std::string hash
 
std::string mp_era
 
std::string mp_scenario
 
std::string mp_scenario_name
 
std::string mp_campaign
 
std::vector< std::stringactive_mods
 
std::map< std::string,
std::string
side_users
 
bool show_connect
 
int num_turns
 
int village_gold
 
int village_support
 
int xp_modifier
 
int mp_countdown_init_time
 
int mp_countdown_reservoir_time
 
int mp_countdown_turn_bonus
 
int mp_countdown_action_bonus
 
bool mp_countdown
 
bool use_map_settings
 
bool random_start_time
 
bool fog_game
 
bool shroud_game
 
bool allow_observers
 
bool registered_users_only
 
bool shuffle_sides
 
bool saved_game
 
config options
 
std::map< std::string,
addon_version_info
addons
 

Detailed Description

Definition at line 27 of file mp_game_settings.hpp.

Constructor & Destructor Documentation

mp_game_settings::mp_game_settings ( )

Definition at line 31 of file mp_game_settings.cpp.

mp_game_settings::mp_game_settings ( const config cfg)

Definition at line 64 of file mp_game_settings.cpp.

References addons, and config::child_range().

Member Function Documentation

mp_game_settings::MAKE_ENUM ( RANDOM_FACTION_MODE  ,
(DEFAULT, N_("Independent"))(NO_MIRROR, N_("No Mirror"))(NO_ALLY_MIRROR, N_("No Ally Mirror"))   
)
config mp_game_settings::to_config ( ) const
void mp_game_settings::update_addon_requirements ( const config addon_cfg)

Member Data Documentation

std::vector<std::string> mp_game_settings::active_mods
std::map<std::string, addon_version_info> mp_game_settings::addons

Definition at line 85 of file mp_game_settings.hpp.

Referenced by mp_game_settings(), to_config(), and update_addon_requirements().

bool mp_game_settings::allow_observers
bool mp_game_settings::fog_game
std::string mp_game_settings::hash
std::string mp_game_settings::mp_campaign

Definition at line 42 of file mp_game_settings.hpp.

Referenced by to_config().

bool mp_game_settings::mp_countdown
int mp_game_settings::mp_countdown_action_bonus
int mp_game_settings::mp_countdown_init_time
int mp_game_settings::mp_countdown_reservoir_time
int mp_game_settings::mp_countdown_turn_bonus
std::string mp_game_settings::mp_era
std::string mp_game_settings::mp_scenario

Definition at line 40 of file mp_game_settings.hpp.

Referenced by events::console_handler::do_choose_level(), and to_config().

std::string mp_game_settings::mp_scenario_name

Definition at line 41 of file mp_game_settings.hpp.

Referenced by to_config().

std::string mp_game_settings::name
int mp_game_settings::num_turns
config mp_game_settings::options
std::string mp_game_settings::password
bool mp_game_settings::random_start_time
bool mp_game_settings::registered_users_only
bool mp_game_settings::saved_game
bool mp_game_settings::show_connect
bool mp_game_settings::shroud_game
bool mp_game_settings::shuffle_sides
std::map<std::string, std::string> mp_game_settings::side_users

Definition at line 44 of file mp_game_settings.hpp.

Referenced by to_config().

bool mp_game_settings::use_map_settings
int mp_game_settings::village_gold
int mp_game_settings::village_support
int mp_game_settings::xp_modifier

The documentation for this struct was generated from the following files: