53 std::unique_ptr<editor_action>
clone()
const override;
73 std::unique_ptr<editor_action>
clone()
const override;
88 std::unique_ptr<editor_action>
clone()
const override;
108 std::unique_ptr<editor_action>
clone()
const override;
Remove a item from the map.
void perform_without_undo(map_context &mc) const override
Perform the action without creating an undo action.
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 ...
editor_action_item_delete(map_location loc)
const std::string & get_name() const override
std::unique_ptr< editor_action > clone() const override
Action cloning.
map_location::DIRECTION new_direction_
std::unique_ptr< editor_action > clone() const override
Action cloning.
void perform_without_undo(map_context &mc) const override
Perform the action without creating an undo action.
editor_action_item_facing(map_location loc, map_location::DIRECTION new_direction, map_location::DIRECTION old_direction)
const std::string & get_name() const override
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 ...
map_location::DIRECTION old_direction_
const std::string & get_name() const override
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 ...
std::unique_ptr< editor_action > clone() const override
Action cloning.
void perform_without_undo(map_context &mc) const override
Perform the action without creating an undo action.
editor_action_item_replace(map_location loc, map_location new_loc)
place a new item on the map
std::unique_ptr< editor_action > clone() const override
Action cloning.
const std::string & get_name() const override
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 ...
editor_action_item(map_location loc, const overlay &item)
void perform_without_undo(map_context &mc) const override
Perform the action without creating an undo action.
Base class for actions which act on a specified location (and possibly on other locations that can be...
This class wraps around a map to provide a concise interface for the editor to work with.
Manage the empty-palette in the editor.
std::pair< std::string, unsigned > item
Encapsulates the map of the game.
DIRECTION
Valid directions which can be moved in our hexagonal world.