15 #define GETTEXT_DOMAIN "wesnoth-editor"
36 std::set<map_location> adjacent_set;
40 for (
int i = 0;
i < 6;
i++)
41 adjacent_set.insert(adjacent[
i]);
99 if (!
click_)
return nullptr;
131 if (
click_)
return nullptr;
235 std::stringstream filename;
surface get_image(const image::locator &i_locator, TYPE type)
function to get the surface corresponding to an image.
const Item & selected_fg_item() const
Return the currently selected foreground/background item.
map_location previous_move_hex_
The hex previously used in move operations.
bool invalidate(const map_location &loc)
Function to invalidate a specific tile for redrawing.
void get_adjacent_tiles(const map_location &a, map_location *res)
Function which, given a location, will place all adjacent locations in res.
GLenum GLsizei GLenum GLenum const GLvoid * image
const map_location hex_clicked_on(int x, int y) const
given x,y co-ordinates of an onscreen pixel, will return the location of the hex that this pixel corr...
editor_action * click_left(editor_display &disp, int x, int y)
TODO.
double get_zoom_factor() const
Returns the current zoom factor.
GLint GLint GLint GLint GLint GLint y
surface scale_surface(const surface &surf, int w, int h)
editor_action * up_left(editor_display &disp, int x, int y)
TODO.
surface adjust_surface_alpha(const surface &surf, fixed_t amount, bool optimize)
editor_action * drag_left(editor_display &disp, int x, int y, bool &partial, editor_action *last_undo)
Drag operation.
void update_brush_highlights(editor_display &disp, const map_location &hex)
Unconditionally update the brush highlights for the current tool when hex is the center location...
GLclampf GLclampf GLclampf alpha
item_palette & item_palette_
void set_mouseover_hex_overlay(const surface &image)
mouseover_hex_overlay_ require a prerendered surface and is drawn underneath the mouse's location ...
Manage the empty-palette in the editor.
virtual void set_mouse_overlay(editor_display &disp)
Set the mouse overlay for this action.
Encapsulates the map of the game.
void set_item_mouse_overlay(editor_display &disp, const overlay &u)
Base class for all editor actions.
GLint GLint GLint GLint GLint x
bool on_board(const map_location &loc) const
Tell if a location is on the map.
void add_overlay(const map_location &loc, const std::string &image, const std::string &halo="", const std::string &team_name="", const std::string &item_id="", bool visible_under_fog=true)
Functions to add and remove overlays from locations.
const gamemap & get_map() const
void move(editor_display &disp, const map_location &hex)
Mouse move (not a drag).
editor_action * drag_end_left(editor_display &disp, int x, int y)
Drag end replaces the item when clicked left, or adjusts the facing when clicked right.