The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces
action_base.hpp File Reference

Base class for editor actions. More...

#include "editor/editor_common.hpp"
Include dependency graph for action_base.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  editor::editor_action
 Base class for all editor actions. More...
 
struct  editor::editor_action_exception
 

Namespaces

 editor
 Manage the empty-palette in the editor.
 

Detailed Description

Base class for editor actions.

An action is constructed in response to a user command, then executed on the map. An undo action is returned by default via pointer, caller-owned). It is possible to call an action without creating the undo action. Actions report failure via exceptions. Code that only deals with actions polymorphically should only need to include this header file.

Definition in file action_base.hpp.