52 const std::string&
id()
const {
return id_; }
101 return (underlying.empty()
102 || (underlying.size() == 1 && underlying.front() ==
id));
bool is_indivisible() const
Returns true if this terrain has no underlying types other than itself.
std::string minimap_image_overlay_
bool is_mvt_indivisible() const
const t_translation::ter_list & mvt_type() const
The underlying type of the terrain.
t_translation::terrain_code editor_default_base_
const terrain_code NONE_TERRAIN
const t_string & description() const
t_translation::ter_list mvt_type_
t_translation::ter_list def_type_
double unit_submerge() const
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 bool is_indivisible(t_translation::terrain_code id, const t_translation::ter_list &underlying)
Returns true if a terrain has no underlying types other than itself, in respect of either union...
const t_string & income_description() const
const std::string & editor_image() const
Definitions for the interface to Wesnoth Markup Language (WML).
bool hide_help() const
For instances created from a [terrain_type] tag, the value in the tag (with default false)...
t_string income_description_own_
std::string editor_group_
bool is_nonnull() const
True if this object represents some sentinel values.
const terrain_code VOID_TERRAIN
VOID_TERRAIN is used for shrouded hexes.
int light_bonus(int base) const
Returns the light (lawful) bonus for this terrain when the time of day gives a base bonus...
const t_string & editor_name() const
t_translation::terrain_code default_base() const
bool is_combined() const
True for instances created by the terrain_code(base, overlay) constructor.
t_string income_description_ally_
int unit_height_adjust() const
bool hide_if_impassable() const
const t_translation::ter_list & vision_type() const
General math utility functions.
int gives_healing() const
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
t_translation::terrain_code number() const
const t_string & income_description_own() const
const t_string & income_description_enemy() const
const t_translation::ter_list & union_type() const
const std::string & minimap_image() const
std::string minimap_image_
The image used in the minimap.
bool hide_in_editor() const
const t_string & name() const
t_string income_description_enemy_
void set_editor_group(const std::string &str)
constexpr int bounded_add(int base, int increment, int max_sum, int min_sum=0)
Returns base + increment, but will not increase base above max_sum, nor decrease it below min_sum...
const t_translation::ter_list & def_type() const
const std::string & id() const
std::vector< terrain_code > ter_list
const t_string & income_description_ally() 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.
const std::string & minimap_image_overlay() const
const t_string & help_topic_text() const
const std::string & editor_group() const
const std::string & icon_image() const