map_manip.hpp File Reference

#include "global.hpp"
#include "../map.hpp"
#include <vector>
#include <set>

Include dependency graph for map_manip.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  map_editor

Classes

class  editormap

Typedefs

typedef std::vector< std::pair
< gamemap::location,
t_translation::t_terrain > > 
map_editor::terrain_log

Enumerations

enum  map_editor::FLIP_AXIS { map_editor::NO_FLIP, map_editor::FLIP_X, map_editor::FLIP_Y }

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

Definition in file map_manip.hpp.


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