A terrain string which is converted to a terrain is a string with 1 or 2 layers the layers are separated by a caret and each group consists of 2 to 4 characters if no second layer is defined it is stored as 0xFFFFFFFF, if the second layer is empty (needed for matching) the layer has the value 0. More...
#include <translation.hpp>
Public Member Functions | |
t_terrain (const std::string &b, const std::string &o) | |
t_terrain (const std::string &b, t_layer o=NO_LAYER) | |
t_terrain (t_layer b, t_layer o) | |
t_terrain () | |
Public Attributes | |
t_layer | base |
t_layer | overlay |
A terrain string which is converted to a terrain is a string with 1 or 2 layers the layers are separated by a caret and each group consists of 2 to 4 characters if no second layer is defined it is stored as 0xFFFFFFFF, if the second layer is empty (needed for matching) the layer has the value 0.
Definition at line 47 of file translation.hpp.
t_translation::t_terrain::t_terrain | ( | const std::string & | b, |
const std::string & | o | ||
) |
Definition at line 156 of file translation.cpp.
t_translation::t_terrain::t_terrain | ( | const std::string & | b, |
t_layer | o = NO_LAYER |
||
) |
Definition at line 152 of file translation.cpp.
Definition at line 50 of file translation.hpp.
|
inline |
Definition at line 51 of file translation.hpp.
t_layer t_translation::t_terrain::base |
Definition at line 53 of file translation.hpp.
Referenced by editor::map_context::draw_terrain_actual(), t_translation::get_mask_(), t_translation::has_wildcard(), terrain_type_data::merge_terrains(), t_translation::number_to_string_(), t_translation::operator!=(), t_translation::operator&(), t_translation::operator<(), t_translation::operator==(), t_translation::operator|(), terrain_builder::parse_mapstring(), t_translation::string_to_number_(), t_translation::terrain_matches(), terrain_type::terrain_with_default_base(), and terrain_type_data::try_merge_terrains().
t_layer t_translation::t_terrain::overlay |
Definition at line 54 of file translation.hpp.
Referenced by t_translation::get_mask_(), t_translation::has_wildcard(), terrain_type_data::merge_terrains(), t_translation::number_to_string_(), t_translation::operator!=(), t_translation::operator&(), t_translation::operator<(), t_translation::operator==(), t_translation::operator|(), terrain_builder::parse_mapstring(), t_translation::string_to_number_(), t_translation::terrain_matches(), terrain_type::terrain_with_default_base(), and terrain_type_data::try_merge_terrains().