47 std::unique_ptr<editor_action>
clone()
const override;
67 std::unique_ptr<editor_action>
clone()
const override;
82 std::unique_ptr<editor_action>
clone()
const override;
102 std::unique_ptr<editor_action>
clone()
const override;
Base class for actions which act on a specified location (and possibly on other locations that can be...
Remove a unit from the map.
const std::string & get_name() const override
editor_action_unit_delete(map_location loc)
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 ...
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.
map_location::direction old_direction_
std::unique_ptr< editor_action > clone() const override
Action cloning.
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 ...
editor_action_unit_facing(map_location loc, map_location::direction new_direction, map_location::direction old_direction)
const std::string & get_name() const override
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_unit_replace(map_location loc, map_location new_loc)
void perform_without_undo(map_context &mc) const override
Perform the action without creating an undo action.
std::unique_ptr< editor_action > clone() const override
Action cloning.
place a new unit on the map
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 ...
const std::string & get_name() const override
void perform_without_undo(map_context &mc) const override
Perform the action without creating an undo action.
std::unique_ptr< editor_action > clone() const override
Action cloning.
editor_action_unit(map_location loc, const unit &u)
This class wraps around a map to provide a concise interface for the editor to work with.
This class represents a single unit of a specific type.
Manage the empty-palette in the editor.
std::shared_ptr< unit > unit_ptr
Encapsulates the map of the game.
direction
Valid directions which can be moved in our hexagonal world.