Public Member Functions | Protected Attributes

editor::editor_action_resize_map Class Reference

Resize the map. More...

#include <action.hpp>

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

List of all members.

Public Member Functions

 editor_action_resize_map (int x_size, int y_size, int x_offset, int y_offset, t_translation::t_terrain fill=t_translation::NONE_TERRAIN)
editor_action_resize_mapclone () const
 Action cloning.
void perform_without_undo (map_context &mc) const
 Perform the action without creating an undo action.
const char * get_name () const

Protected Attributes

int x_size_
int y_size_
int x_offset_
int y_offset_
t_translation::t_terrain fill_

Detailed Description

Resize the map.

The offsets specify, indirectly, the direction of expanding/shrinking, and fill=NONE enables copying of edge terrain instead of filling.

Definition at line 383 of file action.hpp.


Constructor & Destructor Documentation

editor::editor_action_resize_map::editor_action_resize_map ( int  x_size,
int  y_size,
int  x_offset,
int  y_offset,
t_translation::t_terrain  fill = t_translation::NONE_TERRAIN 
) [inline]

Definition at line 386 of file action.hpp.


Member Function Documentation

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

Action cloning.

Implements editor::editor_action.

Definition at line 372 of file action.cpp.

References editor::map_context::get_map(), editor::editor_map::invert_selection(), and editor::map_context::set_everything_changed().

Here is the call graph for this function:

const char* editor::editor_action_resize_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 393 of file action.hpp.

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

Perform the action without creating an undo action.

Implements editor::editor_action.

Definition at line 376 of file action.cpp.


Member Data Documentation

Definition at line 399 of file action.hpp.

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

Definition at line 397 of file action.hpp.

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

Definition at line 395 of file action.hpp.

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

Definition at line 398 of file action.hpp.

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

Definition at line 396 of file action.hpp.

Referenced by editor::editor_action_apply_mask::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:27 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs