|
int | t_translation::max_map_size () |
| Return the maximum allowed map size (in either dimension), the maximum map area is, therefore, this value squared. More...
|
|
bool | t_translation::operator< (const terrain_code &a, const terrain_code &b) |
|
bool | t_translation::operator== (const terrain_code &a, const terrain_code &b) |
|
bool | t_translation::operator!= (const terrain_code &a, const terrain_code &b) |
|
terrain_code | t_translation::operator& (const terrain_code &a, const terrain_code &b) |
|
terrain_code | t_translation::operator| (const terrain_code &a, const terrain_code &b) |
|
terrain_code | t_translation::read_terrain_code (std::string_view str, const ter_layer filler=NO_LAYER) |
| Reads a single terrain from a string. More...
|
|
std::string | t_translation::write_terrain_code (const terrain_code &tcode) |
| Writes a single terrain code to a string. More...
|
|
std::ostream & | t_translation::operator<< (std::ostream &s, const terrain_code &a) |
|
ter_list | t_translation::read_list (std::string_view str, const ter_layer filler=NO_LAYER) |
| Reads a list of terrains from a string, when reading the. More...
|
|
std::string | t_translation::write_list (const ter_list &list) |
| Writes a list of terrains to a string, only writes the new format. More...
|
|
ter_map | t_translation::read_game_map (std::string_view str, starting_positions &positions, coordinate border_offset=coordinate{ 0, 0 }) |
| Reads a gamemap string into a 2D vector. More...
|
|
std::string | t_translation::write_game_map (const ter_map &map, const starting_positions &positions=starting_positions(), coordinate border_offset=coordinate{ 0, 0 }) |
| Write a gamemap in to a vector string. More...
|
|
bool | t_translation::terrain_matches (const terrain_code &src, const ter_list &dest) |
| Tests whether a specific terrain matches a list of expressions. More...
|
|
bool | t_translation::terrain_matches (const terrain_code &src, const terrain_code &dest) |
| Tests whether a specific terrain matches an expression, for matching rules see above. More...
|
|
bool | t_translation::terrain_matches (const terrain_code &src, const ter_match &dest) |
| Tests whether a certain terrain matches a list of expressions, for matching rules see above. More...
|
|
bool | t_translation::has_wildcard (const terrain_code &tcode) |
| Tests whether a terrain code contains a wildcard. More...
|
|
bool | t_translation::has_wildcard (const ter_list &list) |
| Tests whether a terrain-code list contains at least one item with a wildcard. More...
|
|
ter_map | t_translation::read_builder_map (const std::string &str) |
| Reads a builder map. More...
|
|