The Battle for Wesnoth  1.15.2+dev
Public Member Functions | Protected Attributes | List of all members
editor::editor_action_location_terrain Class Reference

Base class for actions which in addition to acting on a hex, act with one terrain type, i.e. More...

#include <action.hpp>

Inheritance diagram for editor::editor_action_location_terrain:
Inheritance graph

Public Member Functions

 editor_action_location_terrain (map_location loc, const t_translation::terrain_code &t)
 
const std::string & 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_actionclone () const =0
 Action cloning. More...
 
virtual editor_actionperform (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...
 

Detailed Description

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 210 of file action.hpp.

Constructor & Destructor Documentation

◆ editor_action_location_terrain()

editor::editor_action_location_terrain::editor_action_location_terrain ( map_location  loc,
const t_translation::terrain_code t 
)
inline

Definition at line 213 of file action.hpp.

Member Function Documentation

◆ get_name()

const std::string& editor::editor_action_location_terrain::get_name ( ) const
inlinevirtual
Returns
a short name of this action type, defaults to unknown

Reimplemented from editor::editor_action_location.

Reimplemented in editor::editor_action_fill.

Definition at line 219 of file action.hpp.

Member Data Documentation

◆ t_

t_translation::terrain_code editor::editor_action_location_terrain::t_
protected

Definition at line 226 of file action.hpp.


The documentation for this class was generated from the following file: