Paint the same terrain on a number of locations on the map. More...
#include <action.hpp>


Public Member Functions | |
| editor_action_paint_area (const std::set< map_location > &area, t_translation::t_terrain t, bool one_layer=false) | |
| editor_action_paint_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 |
Protected Attributes | |
| t_translation::t_terrain | t_ |
| bool | one_layer_ |
Paint the same terrain on a number of locations on the map.
Definition at line 245 of file action.hpp.
| editor::editor_action_paint_area::editor_action_paint_area | ( | const std::set< map_location > & | area, | |
| t_translation::t_terrain | t, | |||
| bool | one_layer = false | |||
| ) | [inline] |
Definition at line 248 of file action.hpp.
Referenced by perform().

| editor_action_paint_area * editor::editor_action_paint_area::clone | ( | ) | const [virtual] |
| const char* editor::editor_action_paint_area::get_name | ( | ) | const [inline, virtual] |
Reimplemented from editor::editor_action_area.
Definition at line 256 of file action.hpp.
| editor_action_paste * editor::editor_action_paint_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 181 of file action.cpp.
References editor_action_paint_area().

| void editor::editor_action_paint_area::perform_without_undo | ( | map_context & | ) | const [virtual] |
Perform the action without creating an undo action.
Implements editor::editor_action.
Definition at line 188 of file action.cpp.
References editor::editor_action_area::area_, and editor::map_context::get_map().

bool editor::editor_action_paint_area::one_layer_ [protected] |
Definition at line 259 of file action.hpp.
Referenced by editor::editor_action_fill::clone().
Definition at line 258 of file action.hpp.
Referenced by editor::editor_action_fill::clone().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:25 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |