Base class for area-affecting actions. More...
#include <action.hpp>


Public Member Functions | |
| editor_action_area (const std::set< map_location > &area) | |
| void | extend (const editor_map &map, const std::set< map_location > &locs) |
| The crux of the extendable contract. | |
| const char * | get_name () const |
Protected Attributes | |
| std::set< map_location > | area_ |
Base class for area-affecting actions.
Definition at line 209 of file action.hpp.
| editor::editor_action_area::editor_action_area | ( | const std::set< map_location > & | area | ) | [inline] |
Definition at line 212 of file action.hpp.
| void editor::editor_action_area::extend | ( | const editor_map & | map, | |
| const std::set< map_location > & | locs | |||
| ) | [virtual] |
The crux of the extendable contract.
This member function must be implemented so that the undo behaviour is consistent, exactly the same as would be with separate undo actions for every part of the drag.
Implements editor::editor_action_extendable.
Reimplemented in editor::editor_action_select, and editor::editor_action_deselect.
Definition at line 149 of file action.cpp.
| const char* editor::editor_action_area::get_name | ( | ) | const [inline, virtual] |
Reimplemented from editor::editor_action_extendable.
Reimplemented in editor::editor_action_paint_area, editor::editor_action_select, editor::editor_action_deselect, and editor::editor_action_shuffle_area.
Definition at line 217 of file action.hpp.
std::set<map_location> editor::editor_action_area::area_ [protected] |
Definition at line 219 of file action.hpp.
Referenced by editor::editor_action_fill::clone(), editor::editor_action_paste::clone(), editor::editor_action_deselect::perform(), editor::editor_action_select::perform(), and editor::editor_action_paint_area::perform_without_undo().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:24 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |