26 #define ERR_G LOG_STREAM(err, lg::general()) 27 #define WRN_G LOG_STREAM(warn, lg::general()) 28 #define LOG_G LOG_STREAM(info, lg::general()) 29 #define DBG_G LOG_STREAM(debug, lg::general()) 38 minimap_image_overlay_(),
51 height_adjust_set_(false),
54 light_modification_(0),
58 income_description_(),
59 income_description_ally_(),
60 income_description_enemy_(),
61 income_description_own_(),
70 hide_in_editor_(false),
71 hide_if_impassable_(false)
78 editor_image_(cfg[
"editor_image"].empty() ?
"terrain/" +
minimap_image_ +
".png" :
"terrain/" + cfg[
"editor_image"].str() +
".png"),
80 name_(cfg[
"name"].t_str()),
102 village_(cfg[
"gives_income"].to_bool()),
103 castle_(cfg[
"recruit_onto"].to_bool()),
104 keep_(cfg[
"recruit_from"].to_bool()),
149 if(!mvt_alias.empty()) {
154 if(!def_alias.empty()) {
159 if(!vision_alias.empty()) {
341 for(i = first.begin(); i != first.end(); ++
i) {
371 first.insert(insert_it, second.begin(), second.end());
void remove()
Removes a tip.
std::string minimap_image_overlay_
t_translation::terrain_code editor_default_base_
const terrain_code NONE_TERRAIN
const t_string & description() const
t_translation::ter_list mvt_type_
Interfaces for manipulating version numbers of engine, add-ons, etc.
t_translation::ter_list def_type_
t_string income_description_
std::string editor_image_
The image used in the editor palette if not defined in WML it will be initialized with the value of m...
bool operator==(const terrain_type &other) const
Returns true if all most of the data matches.
A terrain string which is converted to a terrain is a string with 1 or 2 layers the layers are separa...
static std::string _(const char *str)
t_string income_description_own_
std::string editor_group_
std::string missing_mandatory_wml_key(const std::string §ion, const std::string &key, const std::string &primary_key, const std::string &primary_value)
Returns a standard message for a missing wml key.
terrain_code read_terrain_code(std::string_view str, const ter_layer filler)
Reads a single terrain from a string.
const terrain_code VOID_TERRAIN
VOID_TERRAIN is used for shrouded hexes.
t_string income_description_ally_
std::string deprecated_message(const std::string &elem_name, DEP_LEVEL level, const version_info &version, const std::string &detail)
#define VALIDATE(cond, message)
The macro to use for the validation of WML.
std::string write_terrain_code(const terrain_code &tcode)
Writes a single terrain code to a string.
static lg::log_domain log_config("config")
terrain_type()
Creates an instance for which is_nonnull() returns false.
t_translation::terrain_code number_
t_translation::ter_list union_type_
t_translation::ter_list vision_type_
t_translation::terrain_code terrain_with_default_base() const
std::string minimap_image_
The image used in the minimap.
void merge_alias_lists(t_translation::ter_list &first, const t_translation::ter_list &second)
Insert second vector into first when the terrain _ref^base is encountered.
t_string income_description_enemy_
Standard logging facilities (interface).
std::vector< terrain_code > ter_list
std::string base_str() const
t_string help_topic_text_
std::string icon_image_
The image used as symbol icon.
A config object defines a single node in a WML file, with access to child nodes.
std::string::const_iterator iterator
ter_list read_list(std::string_view str, const ter_layer filler)
Reads a list of terrains from a string, when reading the.