Replace contents of the entire map, Useful as a fallback undo method when something else would be impractical. More...
#include <action.hpp>


Public Member Functions | |
| editor_action_whole_map (const editor_map &m) | |
| editor_action_whole_map * | clone () const |
| Action cloning. | |
| void | perform_without_undo (map_context &m) const |
| Perform the action without creating an undo action. | |
| const char * | get_name () const |
Protected Attributes | |
| editor_map | m_ |
Replace contents of the entire map, Useful as a fallback undo method when something else would be impractical.
Definition at line 39 of file action.hpp.
| editor::editor_action_whole_map::editor_action_whole_map | ( | const editor_map & | m | ) | [inline] |
Definition at line 42 of file action.hpp.
| editor_action_whole_map * editor::editor_action_whole_map::clone | ( | ) | const [virtual] |
Action cloning.
Implements editor::editor_action.
Definition at line 63 of file action.cpp.
References editor::map_context::get_map(), editor::editor_action::perform_without_undo(), and util::unique_ptr< T >::release().

| const char* editor::editor_action_whole_map::get_name | ( | ) | const [inline, virtual] |
Reimplemented from editor::editor_action.
Definition at line 48 of file action.hpp.
| void editor::editor_action_whole_map::perform_without_undo | ( | map_context & | ) | const [virtual] |
Perform the action without creating an undo action.
Implements editor::editor_action.
Definition at line 67 of file action.cpp.
editor_map editor::editor_action_whole_map::m_ [protected] |
Definition at line 50 of file action.hpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:23 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |