87 static editor_map from_string(
const std::string& data);
115 std::set<map_location> get_contiguous_terrain_tiles(
const map_location&
start)
const;
121 std::set<map_location> set_starting_position_labels(
display& disp);
144 bool set_selection(
const std::set<map_location>& area);
149 const std::set<map_location>&
selection()
const {
return selection_; }
154 void clear_selection();
159 void invert_selection();
169 bool everything_selected()
const;
175 void resize(
int width,
int height,
int x_offset,
int y_offset,
188 bool same_size_as(
const gamemap& other)
const;
196 void shrink_right(
int count);
197 void shrink_left(
int count);
198 void shrink_top(
int count);
199 void shrink_bottom(
int count);
~editor_map_save_exception() noexcept
editor_map_save_exception(const std::string &msg)
editor_map_load_exception(const std::string &fn, const std::string &msg)
editor_map_operation_exception()
const terrain_code NONE_TERRAIN
std::set< map_location > selection_
The selected hexes.
A terrain string which is converted to a terrain is a string with 1 or 2 layers the layers are separa...
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
editor_map_load_exception wrap_exc(const char *type, const std::string &e_msg, const std::string &filename)
Exception wrapping utility.
const std::set< map_location > & selection() const
Return the selection set.
EXIT_STATUS start(const std::string &filename, bool take_screenshot, const std::string &screenshot_filename)
Main interface for launching the editor from the title screen.
Encapsulates the map of the game.
Manage the empty-palette in the editor.
Encapsulates the map of the game.
This class adds extra editor-specific functionality to a normal gamemap.
Main (common) editor header.
~editor_map_load_exception() noexcept
editor_map_integrity_error()