Public Member Functions | Protected Attributes

editor::editor_action_whole_map Class Reference

Replace contents of the entire map, Useful as a fallback undo method when something else would be impractical. More...

#include <action.hpp>

Inheritance diagram for editor::editor_action_whole_map:
Inheritance graph
[legend]
Collaboration diagram for editor::editor_action_whole_map:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 editor_action_whole_map (const editor_map &m)
editor_action_whole_mapclone () const
 Action cloning.
void perform_without_undo (map_context &m) const
 Perform the action without creating an undo action.
const char * get_name () const

Protected Attributes

editor_map m_

Detailed Description

Replace contents of the entire map, Useful as a fallback undo method when something else would be impractical.

Definition at line 39 of file action.hpp.


Constructor & Destructor Documentation

editor::editor_action_whole_map::editor_action_whole_map ( const editor_map m  )  [inline]

Definition at line 42 of file action.hpp.


Member Function Documentation

editor_action_whole_map * editor::editor_action_whole_map::clone (  )  const [virtual]

Action cloning.

Implements editor::editor_action.

Definition at line 63 of file action.cpp.

References editor::map_context::get_map(), editor::editor_action::perform_without_undo(), and util::unique_ptr< T >::release().

Here is the call graph for this function:

const char* editor::editor_action_whole_map::get_name (  )  const [inline, virtual]
Returns:
a short name of this action type, defaults to unknown

Reimplemented from editor::editor_action.

Definition at line 48 of file action.hpp.

void editor::editor_action_whole_map::perform_without_undo ( map_context  )  const [virtual]

Perform the action without creating an undo action.

Implements editor::editor_action.

Definition at line 67 of file action.cpp.


Member Data Documentation

Definition at line 50 of file action.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:23 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs