Map-generator, with standalone testprogram. More...
#include "generators/default_map_generator_job.hpp"
#include "serialization/string_utils.hpp"
#include "game_config_manager.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "generators/map_generator.hpp"
#include "pathfind/pathfind.hpp"
#include "pathutils.hpp"
#include "utils/name_generator_factory.hpp"
#include "utils/optimer.hpp"
#include "seed_rng.hpp"
#include "wml_exception.hpp"
#include <chrono>
Go to the source code of this file.
Macros | |
#define | ERR_NG LOG_STREAM(err, log_mapgen) |
#define | LOG_NG LOG_STREAM(info, log_mapgen) |
#define | DBG_NG LOG_STREAM(debug, log_mapgen) |
Typedefs | |
typedef std::vector< std::vector< int > > | height_map |
typedef t_translation::ter_map | terrain_map |
typedef std::map< t_translation::terrain_code, t_translation::ter_list > | tcode_list_cache |
Functions | |
static std::string | output_map (const terrain_map &terrain, t_translation::starting_positions &starting_positions) |
Function which, given the map will output it in a valid format. More... | |
static int | rank_castle_location (int x, int y, const is_valid_terrain &valid_terrain, int min_x, int max_x, int min_y, int max_y, std::size_t min_distance, const std::vector< map_location > &other_castles, int highest_ranking) |
static map_location | place_village (const t_translation::ter_map &map, const std::size_t x, const std::size_t y, const std::size_t radius, const config &cfg, tcode_list_cache &adj_liked_cache) |
static void | flood_name (const map_location &start, const std::string &name, std::map< map_location, std::string > &tile_names, const t_translation::ter_match &tile_types, const terrain_map &terrain, unsigned width, unsigned height, std::size_t label_count, std::map< map_location, std::string > *labels, const std::string &full_name) |
Variables | |
static lg::log_domain | log_mapgen ("mapgen") |
Map-generator, with standalone testprogram.
Definition in file default_map_generator_job.cpp.
#define DBG_NG LOG_STREAM(debug, log_mapgen) |
Definition at line 40 of file default_map_generator_job.cpp.
#define ERR_NG LOG_STREAM(err, log_mapgen) |
Definition at line 38 of file default_map_generator_job.cpp.
#define LOG_NG LOG_STREAM(info, log_mapgen) |
Definition at line 39 of file default_map_generator_job.cpp.
typedef std::vector<std::vector<int> > height_map |
Definition at line 42 of file default_map_generator_job.cpp.
typedef std::map<t_translation::terrain_code, t_translation::ter_list> tcode_list_cache |
Definition at line 611 of file default_map_generator_job.cpp.
typedef t_translation::ter_map terrain_map |
Definition at line 43 of file default_map_generator_job.cpp.
|
static |
Definition at line 662 of file default_map_generator_job.cpp.
References get_adjacent_tiles(), editor::start(), and t_translation::terrain_matches().
Referenced by default_map_generator_job::default_generate_map().
|
static |
Function which, given the map will output it in a valid format.
Definition at line 522 of file default_map_generator_job.cpp.
References gamemap_base::default_border, t_translation::ter_map::h, t_translation::ter_map::w, t_translation::write_game_map(), map_location::x, and map_location::y.
Referenced by default_map_generator_job::default_generate_map().
|
static |
Definition at line 613 of file default_map_generator_job.cpp.
References config::find_child(), get_adjacent_tiles(), get_tiles_radius(), t_translation::ter_map::h, i, loc, t_translation::read_list(), t, t_translation::ter_map::w, and t_translation::write_terrain_code().
Referenced by default_map_generator_job::default_generate_map().
|
static |
Definition at line 549 of file default_map_generator_job.cpp.
References c, distance_between(), i, and loc.
Referenced by default_map_generator_job::default_generate_map().
|
static |