Public Member Functions | Protected Attributes

editor::editor_action_paint_area Class Reference

Paint the same terrain on a number of locations on the map. More...

#include <action.hpp>

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

List of all members.

Public Member Functions

 editor_action_paint_area (const std::set< map_location > &area, t_translation::t_terrain t, bool one_layer=false)
editor_action_paint_areaclone () const
 Action cloning.
editor_action_pasteperform (map_context &mc) const
 Perform the action, returning an undo action that, when performed, shall reverse any effects of this action.
void perform_without_undo (map_context &mc) const
 Perform the action without creating an undo action.
const char * get_name () const

Protected Attributes

t_translation::t_terrain t_
bool one_layer_

Detailed Description

Paint the same terrain on a number of locations on the map.

Definition at line 245 of file action.hpp.


Constructor & Destructor Documentation

editor::editor_action_paint_area::editor_action_paint_area ( const std::set< map_location > &  area,
t_translation::t_terrain  t,
bool  one_layer = false 
) [inline]

Definition at line 248 of file action.hpp.

Referenced by perform().

Here is the caller graph for this function:


Member Function Documentation

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

Action cloning.

Implements editor::editor_action.

Definition at line 177 of file action.cpp.

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

Reimplemented from editor::editor_action_area.

Definition at line 256 of file action.hpp.

editor_action_paste * editor::editor_action_paint_area::perform ( map_context mc  )  const [virtual]

Perform the action, returning an undo action that, when performed, shall reverse any effects of this action.

The undo action object is owned by the caller. Default behaviour is to create a whole-map undo, call the perform_without_undo function and return the undo object.

Reimplemented from editor::editor_action.

Definition at line 181 of file action.cpp.

References editor_action_paint_area().

Here is the call graph for this function:

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

Perform the action without creating an undo action.

Implements editor::editor_action.

Definition at line 188 of file action.cpp.

References editor::editor_action_area::area_, and editor::map_context::get_map().

Here is the call graph for this function:


Member Data Documentation

Definition at line 259 of file action.hpp.

Referenced by editor::editor_action_fill::clone().

Definition at line 258 of file action.hpp.

Referenced by editor::editor_action_fill::clone().


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:25 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs