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 Class Reference

Base class for actions which act on a specified location (and possibly on other locations that can be derived from the staring hex) More...

#include <action.hpp>

Inheritance diagram for editor::editor_action_location:
Inheritance graph

Public Member Functions

 editor_action_location (map_location loc)
 
const char * get_name () const
 
- 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

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 act on a specified location (and possibly on other locations that can be derived from the staring hex)

Definition at line 177 of file action.hpp.

Constructor & Destructor Documentation

editor::editor_action_location::editor_action_location ( map_location  loc)
inline

Definition at line 180 of file action.hpp.

Member Function Documentation

const char* editor::editor_action_location::get_name ( ) const
inlinevirtual

Member Data Documentation

map_location editor::editor_action_location::loc_
protected

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