Set starting position action. More...
#include <mouse_action.hpp>


Public Member Functions | |
| mouse_action_starting_position (const CKey &key, empty_palette &palette) | |
| editor_action * | up_left (editor_display &disp, int x, int y) |
| Left click displays a player-number-selector dialog and then creates an action or returns NULL if cancel was pressed or there would be no change. | |
| editor_action * | click_left (editor_display &disp, int x, int y) |
| A click, possibly the beginning of a drag. | |
| editor_action * | up_right (editor_display &disp, int x, int y) |
| Right click only erases the starting position if there is one. | |
| editor_action * | click_right (editor_display &disp, int x, int y) |
| A click, possibly the beginning of a drag. | |
| virtual void | set_mouse_overlay (editor_display &disp) |
| Set the mouse overlay for this action. | |
Private Attributes | |
| bool | click_ |
Set starting position action.
Definition at line 399 of file mouse_action.hpp.
| editor::mouse_action_starting_position::mouse_action_starting_position | ( | const CKey & | key, | |
| empty_palette & | palette | |||
| ) | [inline] |
Definition at line 402 of file mouse_action.hpp.
| editor_action * editor::mouse_action_starting_position::click_left | ( | editor_display & | disp, | |
| int | x, | |||
| int | y | |||
| ) | [virtual] |
A click, possibly the beginning of a drag.
Must be overridden.
Implements editor::mouse_action.
Definition at line 457 of file mouse_action.cpp.
| editor_action * editor::mouse_action_starting_position::click_right | ( | editor_display & | disp, | |
| int | x, | |||
| int | y | |||
| ) | [virtual] |
A click, possibly the beginning of a drag.
Must be overridden.
Implements editor::mouse_action.
Definition at line 474 of file mouse_action.cpp.
| void editor::mouse_action_starting_position::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 479 of file mouse_action.cpp.
| editor_action * editor::mouse_action_starting_position::up_left | ( | editor_display & | disp, | |
| int | x, | |||
| int | y | |||
| ) | [virtual] |
Left click displays a player-number-selector dialog and then creates an action or returns NULL if cancel was pressed or there would be no change.
Do this on mouse up to avoid drag issue.
Reimplemented from editor::mouse_action.
Definition at line 417 of file mouse_action.cpp.
| editor_action * editor::mouse_action_starting_position::up_right | ( | editor_display & | disp, | |
| int | x, | |||
| int | y | |||
| ) | [virtual] |
Right click only erases the starting position if there is one.
Do this on mouse up to avoid drag issue,
Reimplemented from editor::mouse_action.
Definition at line 463 of file mouse_action.cpp.
bool editor::mouse_action_starting_position::click_ [private] |
Definition at line 426 of file mouse_action.hpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:32 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |