Class that keeps track of all the keys on the keyboard.
Editor mouse action class.
std::unique_ptr< editor_action > up_right(editor_display &disp, int x, int y) override
If clicked on a village hex field, unassigns it's ownership.
std::unique_ptr< editor_action > up_left(editor_display &disp, int x, int y) override
If clicked on a village hex field, assigns the ownership of it to the current side.
mouse_action_village(const CKey &key, empty_palette &palette)
std::unique_ptr< editor_action > click_left(editor_display &, int, int) override
No action.
std::unique_ptr< editor_action > click_right(editor_display &, int, int) override
No action.
virtual void set_mouse_overlay(editor_display &disp) override
Set the mouse overlay for this action.
A mouse action receives events from the controller, and responds to them by creating an appropriate e...
std::vector< color_t > palette(const color_range &cr)
Creates a reference color palette from a color range.
Manage the empty-palette in the editor.