map_manip.cpp File Reference

Operations on a game-map. More...

#include "map_manip.hpp"
#include "../gettext.hpp"
#include "../map.hpp"
#include "../config.hpp"
#include "../construct_dialog.hpp"
#include "../util.hpp"
#include "../wml_exception.hpp"
#include "serialization/string_utils.hpp"
#include <algorithm>
#include <cassert>
#include <map>
#include <set>
#include <sstream>
#include <vector>

Include dependency graph for map_manip.cpp:

Go to the source code of this file.

Namespaces

namespace  map_editor

Functions

std::vector< gamemap::locationmap_editor::get_tiles (const gamemap &map, const gamemap::location &a, const unsigned int radius)
 Return the tiles that are within radius from the location.
void map_editor::flood_fill (gamemap &map, const gamemap::location &start_loc, const t_translation::t_terrain fill_with, terrain_log *log=NULL)
 Flood fill the map with the terrain fill_with starting from the location start_loc.
std::set< gamemap::locationmap_editor::get_component (const gamemap &map, const gamemap::location &start_loc)
 Return the area that would be flood filled if a flood fill was requested.
std::string map_editor::resize_map (editormap &map, const unsigned new_w, const unsigned new_h, const int off_x, const int off_y, const bool do_expand, const t_translation::t_terrain fill_with)
 Return the string representation of the map after it has been resized to new_w X new_h.
std::string map_editor::flip_map (editormap &map, const FLIP_AXIS axis)
 Return the string representation of the map after it has been flipped around the axis.
bool map_editor::valid_mapdata (const std::string &data, const config &cfg)
 Return true if the data is valid to create a map with, othwerwise false.
std::string map_editor::new_map (const size_t width, const size_t height, const t_translation::t_terrain filler)
 Returns a string representating a new empty map of width by height of the terrain filler.


Detailed Description

Operations on a game-map.

Definition in file map_manip.cpp.


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs