#include <translation.hpp>
Public Member Functions | |
ter_map ()=default | |
ter_map (const ter_map &)=default | |
ter_map (ter_map &&)=default | |
ter_map (int w, int h, terrain_code fill=terrain_code()) | |
ter_map & | operator= (const ter_map &)=default |
ter_map & | operator= (ter_map &&)=default |
terrain_code & | get (int x, int y) |
const terrain_code & | get (int x, int y) const |
std::vector< terrain_code >::iterator | operator[] (int x) |
std::vector< terrain_code >::const_iterator | operator[] (int x) const |
Public Attributes | |
std::vector< terrain_code > | data |
int | w |
int | h |
Definition at line 78 of file translation.hpp.
|
default |
|
default |
|
default |
|
inline |
Definition at line 84 of file translation.hpp.
|
inline |
Definition at line 89 of file translation.hpp.
References data, h, and utf8::index().
Referenced by editor::editor_map::expand_bottom(), editor::editor_map::expand_left(), editor::editor_map::expand_right(), editor::editor_map::expand_top(), gamemap_base::get_terrain(), gamemap::operator[](), gamemap::read(), t_translation::read_builder_map(), t_translation::read_game_map(), mapgen_gamemap::set_terrain(), editor::editor_map::shrink_bottom(), editor::editor_map::shrink_left(), editor::editor_map::shrink_right(), and editor::editor_map::shrink_top().
|
inline |
Definition at line 90 of file translation.hpp.
References data, h, and utf8::index().
|
inline |
Definition at line 95 of file translation.hpp.
|
inline |
Definition at line 96 of file translation.hpp.
std::vector<terrain_code> t_translation::ter_map::data |
Definition at line 92 of file translation.hpp.
Referenced by get(), gamemap_base::on_board_with_border(), and operator[]().
int t_translation::ter_map::h |
Definition at line 94 of file translation.hpp.
Referenced by default_map_generator_job::generate_lake(), get(), operator[](), output_map(), place_village(), t_translation::read_builder_map(), t_translation::read_game_map(), editor::editor_map::sanity_check(), editor::editor_map::shrink_bottom(), editor::editor_map::shrink_left(), editor::editor_map::shrink_right(), editor::editor_map::shrink_top(), gamemap_base::total_height(), and t_translation::write_game_map().
int t_translation::ter_map::w |
Definition at line 93 of file translation.hpp.
Referenced by default_map_generator_job::generate_lake(), output_map(), place_village(), t_translation::read_builder_map(), t_translation::read_game_map(), editor::editor_map::sanity_check(), editor::editor_map::shrink_bottom(), editor::editor_map::shrink_left(), editor::editor_map::shrink_right(), editor::editor_map::shrink_top(), gamemap_base::total_width(), and t_translation::write_game_map().