26 #ifndef EDITOR_ACTION_ITEM_HPP
27 #define EDITOR_ACTION_ITEM_HPP
53 const char*
get_name()
const {
return "item"; }
71 const char*
get_name()
const {
return "item_delete"; }
84 const char*
get_name()
const {
return "item_replace"; }
99 const char*
get_name()
const {
return "item_facing"; }
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)
const char * get_name() const
editor_action_item * clone() const
Action cloning.
Base class for actions which act on a specified location (and possibly on other locations that can be...
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.
const char * get_name() const
map_location::DIRECTION new_direction_
const char * get_name() const
editor_action * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
const char * get_name() const
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_
Encapsulates the map of the game.
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.
DIRECTION
Valid directions which can be moved in our hexagonal world.
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.