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 | |
terrain_code (const std::string &b, const std::string &o) | |
terrain_code (const std::string &b, ter_layer o=NO_LAYER) | |
terrain_code (ter_layer b, ter_layer o) | |
terrain_code () | |
Public Attributes | |
ter_layer | base |
ter_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 49 of file translation.hpp.
t_translation::terrain_code::terrain_code | ( | const std::string & | b, |
const std::string & | o | ||
) |
Definition at line 162 of file translation.cpp.
|
explicit |
Definition at line 158 of file translation.cpp.
Definition at line 52 of file translation.hpp.
|
inline |
Definition at line 53 of file translation.hpp.
ter_layer t_translation::terrain_code::base |
Definition at line 55 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(), simplemerge(), t_translation::string_to_number_(), t_translation::terrain_matches(), and terrain_type::terrain_with_default_base().
ter_layer t_translation::terrain_code::overlay |
Definition at line 56 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(), simplemerge(), t_translation::string_to_number_(), t_translation::terrain_matches(), and terrain_type::terrain_with_default_base().