Flood fill. More...
#include <action.hpp>


Public Member Functions | |
| editor_action_fill (map_location loc, t_translation::t_terrain t, bool one_layer=false) | |
| editor_action_fill * | clone () const |
| Action cloning. | |
| editor_action_paint_area * | 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 | |
| bool | one_layer_ |
Flood fill.
Somewhat redundant with paint_area.
Definition at line 265 of file action.hpp.
| editor::editor_action_fill::editor_action_fill | ( | map_location | loc, | |
| t_translation::t_terrain | t, | |||
| bool | one_layer = false | |||
| ) | [inline] |
Definition at line 268 of file action.hpp.
| editor_action_fill * editor::editor_action_fill::clone | ( | ) | const [virtual] |
Action cloning.
Implements editor::editor_action.
Definition at line 194 of file action.cpp.
References editor::editor_action_area::area_, editor::map_context::draw_terrain(), editor::editor_action_paint_area::one_layer_, editor::map_context::set_needs_terrain_rebuild(), and editor::editor_action_paint_area::t_.

| const char* editor::editor_action_fill::get_name | ( | ) | const [inline, virtual] |
Reimplemented from editor::editor_action_location_terrain.
Definition at line 276 of file action.hpp.
| editor_action_paint_area * editor::editor_action_fill::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 198 of file action.cpp.
| void editor::editor_action_fill::perform_without_undo | ( | map_context & | ) | const [virtual] |
Perform the action without creating an undo action.
Implements editor::editor_action.
Definition at line 206 of file action.cpp.
bool editor::editor_action_fill::one_layer_ [protected] |
Definition at line 278 of file action.hpp.
Referenced by editor::editor_action_starting_position::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 |