Base class for actions which in addition to acting on a hex, act with one terrain type, i.e. More...
#include <action.hpp>
Public Member Functions | |
editor_action_location_terrain (map_location loc, const t_translation::terrain_code &t) | |
const std::string & | get_name () const override |
Public Member Functions inherited from editor::editor_action_location | |
editor_action_location (map_location loc) | |
Public Member Functions inherited from editor::editor_action | |
editor_action () | |
virtual | ~editor_action () |
virtual std::unique_ptr< editor_action > | clone () const =0 |
Action cloning. More... | |
virtual std::unique_ptr< editor_action > | perform (map_context &) const |
Perform the action, returning an undo action that, when performed, shall reverse any effects of this action. More... | |
virtual void | perform_without_undo (map_context &) const =0 |
Perform the action without creating an undo action. More... | |
virtual int | action_count () const |
virtual std::string | get_description () const |
A textual description of the action. More... | |
int | get_id () const |
Debugging aid. More... | |
Protected Attributes | |
t_translation::terrain_code | t_ |
Protected Attributes inherited from editor::editor_action_location | |
map_location | loc_ |
Additional Inherited Members | |
Static Public Member Functions inherited from editor::editor_action | |
static int | get_instance_count () |
Debugging aid. More... | |
Base class for actions which in addition to acting on a hex, act with one terrain type, i.e.
paint-related actions.
Definition at line 197 of file action.hpp.
|
inline |
Definition at line 200 of file action.hpp.
|
inlineoverridevirtual |
Reimplemented from editor::editor_action_location.
Reimplemented in editor::editor_action_fill.
Definition at line 206 of file action.hpp.
|
protected |
Definition at line 213 of file action.hpp.
Referenced by editor::editor_action_fill::perform_without_undo().