21 #define GETTEXT_DOMAIN "wesnoth-editor"
27 #include <boost/scoped_ptr.hpp>
40 return undo.release();
93 return undo.release();
130 return undo.release();
void perform_without_undo(map_context &mc) const
Perform the action without creating an undo action.
place a new item on the map
editor_action_item(map_location loc, const overlay &item)
editor_action_item * clone() const
Action cloning.
editor_action_item_facing(map_location loc, map_location::DIRECTION new_direction, map_location::DIRECTION old_direction)
editor_action_item_replace * clone() const
Action cloning.
editor_action_item_delete(map_location loc)
editor_action * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
editor_action_item_replace(map_location loc, map_location new_loc)
editor_action_item_facing * clone() const
Action cloning.
map_location::DIRECTION new_direction_
editor_action * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
editor_action * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
Remove a item from the map.
Manage the empty-palette in the editor.
void perform_without_undo(map_context &mc) const
Perform the action without creating an undo action.
map_location::DIRECTION old_direction_
editor_action * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
Base class for all editor actions.
This class wraps around a map to provide a concise interface for the editor to work with...
editor_action_item_delete * clone() const
Action cloning.
void perform_without_undo(map_context &mc) const
Perform the action without creating an undo action.
void perform_without_undo(map_context &mc) const
Perform the action without creating an undo action.