Public Member Functions | Protected Attributes

editor::mouse_action_fill Class Reference

Fill action. More...

#include <mouse_action.hpp>

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

List of all members.

Public Member Functions

 mouse_action_fill (const CKey &key, terrain_palette &terrain_palette)
std::set< map_locationaffected_hexes (editor_display &disp, const map_location &hex)
 Tiles that will be painted to, possibly use modifier keys here.
editor_actionclick_left (editor_display &disp, int x, int y)
 Left / right click fills with the respective terrain.
editor_actionclick_right (editor_display &disp, int x, int y)
 Left / right click fills with the respective terrain.
virtual void set_mouse_overlay (editor_display &disp)
 Set the mouse overlay for this action.

Protected Attributes

const terrain_paletteterrain_palette_

Detailed Description

Fill action.

No dragging capabilities. Uses keyboard modifiers for one-layer painting.

Definition at line 360 of file mouse_action.hpp.


Constructor & Destructor Documentation

editor::mouse_action_fill::mouse_action_fill ( const CKey key,
terrain_palette terrain_palette 
) [inline]

Definition at line 363 of file mouse_action.hpp.


Member Function Documentation

std::set< map_location > editor::mouse_action_fill::affected_hexes ( editor_display disp,
const map_location hex 
) [virtual]

Tiles that will be painted to, possibly use modifier keys here.

Reimplemented from editor::mouse_action.

Definition at line 375 of file mouse_action.cpp.

editor_action * editor::mouse_action_fill::click_left ( editor_display disp,
int  x,
int  y 
) [virtual]

Left / right click fills with the respective terrain.

Implements editor::mouse_action.

Definition at line 381 of file mouse_action.cpp.

editor_action * editor::mouse_action_fill::click_right ( editor_display disp,
int  x,
int  y 
) [virtual]

Left / right click fills with the respective terrain.

Implements editor::mouse_action.

Definition at line 396 of file mouse_action.cpp.

void editor::mouse_action_fill::set_mouse_overlay ( editor_display disp  )  [virtual]

Set the mouse overlay for this action.

Defaults to an empty overlay.

Reimplemented from editor::mouse_action.

Definition at line 411 of file mouse_action.cpp.


Member Data Documentation

Definition at line 391 of file mouse_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:32 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs