53 std::unique_ptr<editor_action>
clone()
const override;
56 const std::string&
get_name()
const override;
73 std::unique_ptr<editor_action>
clone()
const override;
76 const std::string&
get_name()
const override;
88 std::unique_ptr<editor_action>
clone()
const override;
91 const std::string&
get_name()
const override;
103 , new_direction_(new_direction)
104 , old_direction_(old_direction)
108 std::unique_ptr<editor_action>
clone()
const override;
111 const std::string&
get_name()
const override;
place a new item on the map
editor_action_item(map_location loc, const overlay &item)
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_delete(map_location loc)
editor_action_item_replace(map_location loc, map_location new_loc)
map_location::DIRECTION new_direction_
std::unique_ptr< editor_action > perform(map_context &mc) const override
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
void perform_without_undo(map_context &mc) const override
Perform the action without creating an undo action.
Remove a item from the map.
const std::string & get_name() const override
Manage the empty-palette in the editor.
map_location::DIRECTION old_direction_
Encapsulates the map of the game.
DIRECTION
Valid directions which can be moved in our hexagonal world.
std::unique_ptr< editor_action > clone() const override
Action cloning.
This class wraps around a map to provide a concise interface for the editor to work with...
std::pair< std::string, unsigned > item