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::t_terrain &t) | |
const char * | get_name () const |
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 editor_action * | clone () const =0 |
Action cloning. More... | |
virtual 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::t_terrain | 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 192 of file action.hpp.
|
inline |
Definition at line 195 of file action.hpp.
|
inlinevirtual |
Reimplemented from editor::editor_action_location.
Reimplemented in editor::editor_action_fill.
Definition at line 200 of file action.hpp.
|
protected |
Definition at line 202 of file action.hpp.
Referenced by editor::editor_action_fill::perform(), and editor::editor_action_fill::perform_without_undo().