The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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::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_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::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...
 

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

Constructor & Destructor Documentation

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

Definition at line 195 of file action.hpp.

Member Function Documentation

const char* 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 200 of file action.hpp.

Member Data Documentation

t_translation::t_terrain editor::editor_action_location_terrain::t_
protected

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