The Battle for Wesnoth  1.19.9+dev
Namespaces | Functions
map_settings.cpp File Reference

General settings and defaults for scenarios. More...

#include "lexical_cast.hpp"
#include "map_settings.hpp"
#include "formula/string_utils.hpp"
#include "preferences/preferences.hpp"
#include "saved_game.hpp"
#include "serialization/string_utils.hpp"
Include dependency graph for map_settings.cpp:

Go to the source code of this file.

Namespaces

 settings
 Contains the general settings which have a default.
 

Functions

int settings::get_turns (const std::string &value)
 Gets the number of turns. More...
 
int settings::get_village_gold (const std::string &value, const game_classification *classification=nullptr)
 Gets the village gold. More...
 
int settings::get_village_support (const std::string &value)
 Gets the village unit level support. More...
 
int settings::get_xp_modifier (const std::string &value)
 Gets the xp modifier. More...
 
void settings::set_default_values (ng::create_engine &create)
 
bool settings::force_lock_settings (ng::create_engine &create)
 
std::string settings::game_name_default ()
 
int settings::num_turns_default (ng::create_engine &create)
 
int settings::village_gold_default (ng::create_engine &create)
 
int settings::village_support_default (ng::create_engine &create)
 
int settings::xp_modifier_default (ng::create_engine &create)
 
std::chrono::seconds settings::mp_countdown_init_time_default ()
 
std::chrono::seconds settings::mp_countdown_reservoir_time_default ()
 
std::chrono::seconds settings::mp_countdown_turn_bonus_default ()
 
std::chrono::seconds settings::mp_countdown_action_bonus_default ()
 
bool settings::mp_countdown_default ()
 
bool settings::use_map_settings_default (ng::create_engine &create)
 
bool settings::random_start_time_default (ng::create_engine &create)
 
bool settings::fog_game_default (ng::create_engine &create)
 
bool settings::shroud_game_default (ng::create_engine &create)
 
bool settings::allow_observers_default ()
 
bool settings::shuffle_sides_default ()
 
random_faction_mode::type settings::random_faction_mode_default ()
 

Detailed Description

General settings and defaults for scenarios.

Definition in file map_settings.cpp.