Randomize terrain in an area. More...
#include <action.hpp>


Public Member Functions | |
| editor_action_shuffle_area (const std::set< map_location > &area) | |
| editor_action_shuffle_area * | clone () const |
| Action cloning. | |
| editor_action_paste * | perform (map_context &mc) const |
| Perform the action, returning an undo action that, when performed, shall reverse any effects of this action. | |
| void | perform_without_undo (map_context &mc) const |
| Perform the action without creating an undo action. | |
| const char * | get_name () const |
Randomize terrain in an area.
Definition at line 433 of file action.hpp.
| editor::editor_action_shuffle_area::editor_action_shuffle_area | ( | const std::set< map_location > & | area | ) | [inline] |
Definition at line 436 of file action.hpp.
| editor_action_shuffle_area * editor::editor_action_shuffle_area::clone | ( | ) | const [virtual] |
Action cloning.
Implements editor::editor_action.
Definition at line 402 of file action.cpp.
References editor::map_context::get_map(), editor::editor_map::mask_to(), editor::map_context::set_needs_terrain_rebuild(), and editor::editor_action_create_mask::target_.

| const char* editor::editor_action_shuffle_area::get_name | ( | ) | const [inline, virtual] |
Reimplemented from editor::editor_action_area.
Definition at line 443 of file action.hpp.
| editor_action_paste * editor::editor_action_shuffle_area::perform | ( | map_context & | mc | ) | const [virtual] |
Perform the action, returning an undo action that, when performed, shall reverse any effects of this action.
The undo action object is owned by the caller. Default behaviour is to create a whole-map undo, call the perform_without_undo function and return the undo object.
Reimplemented from editor::editor_action.
Definition at line 406 of file action.cpp.
| void editor::editor_action_shuffle_area::perform_without_undo | ( | map_context & | ) | const [virtual] |
Perform the action without creating an undo action.
Implements editor::editor_action.
Definition at line 414 of file action.cpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:28 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |