Resize the map. More...
#include <action.hpp>


Public Member Functions | |
| editor_action_resize_map (int x_size, int y_size, int x_offset, int y_offset, t_translation::t_terrain fill=t_translation::NONE_TERRAIN) | |
| editor_action_resize_map * | clone () const |
| Action cloning. | |
| void | perform_without_undo (map_context &mc) const |
| Perform the action without creating an undo action. | |
| const char * | get_name () const |
Protected Attributes | |
| int | x_size_ |
| int | y_size_ |
| int | x_offset_ |
| int | y_offset_ |
| t_translation::t_terrain | fill_ |
Resize the map.
The offsets specify, indirectly, the direction of expanding/shrinking, and fill=NONE enables copying of edge terrain instead of filling.
Definition at line 383 of file action.hpp.
| editor::editor_action_resize_map::editor_action_resize_map | ( | int | x_size, | |
| int | y_size, | |||
| int | x_offset, | |||
| int | y_offset, | |||
| t_translation::t_terrain | fill = t_translation::NONE_TERRAIN | |||
| ) | [inline] |
Definition at line 386 of file action.hpp.
| editor_action_resize_map * editor::editor_action_resize_map::clone | ( | ) | const [virtual] |
Action cloning.
Implements editor::editor_action.
Definition at line 372 of file action.cpp.
References editor::map_context::get_map(), editor::editor_map::invert_selection(), and editor::map_context::set_everything_changed().

| const char* editor::editor_action_resize_map::get_name | ( | ) | const [inline, virtual] |
Reimplemented from editor::editor_action.
Definition at line 393 of file action.hpp.
| void editor::editor_action_resize_map::perform_without_undo | ( | map_context & | ) | const [virtual] |
Perform the action without creating an undo action.
Implements editor::editor_action.
Definition at line 376 of file action.cpp.
Definition at line 399 of file action.hpp.
Referenced by editor::editor_action_apply_mask::clone().
int editor::editor_action_resize_map::x_offset_ [protected] |
Definition at line 397 of file action.hpp.
Referenced by editor::editor_action_apply_mask::clone().
int editor::editor_action_resize_map::x_size_ [protected] |
Definition at line 395 of file action.hpp.
Referenced by editor::editor_action_apply_mask::clone().
int editor::editor_action_resize_map::y_offset_ [protected] |
Definition at line 398 of file action.hpp.
Referenced by editor::editor_action_apply_mask::clone().
int editor::editor_action_resize_map::y_size_ [protected] |
Definition at line 396 of file action.hpp.
Referenced by editor::editor_action_apply_mask::clone().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:27 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |