43 size_t iterations,
size_t hill_size,
44 size_t island_size,
size_t island_off_center);
47 size_t iterations,
size_t hill_size,
48 size_t island_size,
size_t center_x,
size_t center_y);
53 terrain_map& terrain,
int x,
int y, std::vector<map_location>& river,
54 std::set<map_location>& seen_locations,
int river_uphill);
A config object defines a single node in a WML file, with access to child nodes.
t_translation::ter_map terrain_map
height_map generate_height_map(size_t width, size_t height, size_t iterations, size_t hill_size, size_t island_size, size_t island_off_center)
Generate a height-map.
map_location random_point_at_side(std::size_t width, std::size_t height)
Returns a random tile at one of the borders of a map that is of the given dimensions.
std::string default_generate_map(generator_data data, std::map< map_location, std::string > *labels, const config &cfg)
Generate the map.
std::vector< map_location > generate_river(const height_map &heights, terrain_map &terrain, int x, int y, int river_uphill)
bool generate_lake(t_translation::ter_map &terrain, int x, int y, int lake_fall_off, std::set< map_location > &locs_touched)
Generate a lake.
const game_config_view & game_config_
bool generate_river_internal(const height_map &heights, terrain_map &terrain, int x, int y, std::vector< map_location > &river, std::set< map_location > &seen_locations, int river_uphill)
River generation.
std::vector< std::vector< int > > height_map
default_map_generator_job()
A class grating read only view to a vector of config objects, viewed as one config with all children ...
Encapsulates the map of the game.