surface get_image(const image::locator &i_locator, TYPE type)
function to get the surface corresponding to an image.
surface create_neutral_surface(int w, int h)
bool is_village(const map_location &loc) const
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...
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)
Sets the ownership of a village to the current side.
void blit_surface(const surface &surf, const SDL_Rect *srcrect, surface &dst, const SDL_Rect *dstrect)
Replacement for sdl_blit.
size_t playing_team() const
The playing team is the team whose turn it is.
virtual void set_mouse_overlay(editor_display &disp)
Set the mouse overlay for this action.
surface adjust_surface_alpha(const surface &surf, fixed_t amount, bool optimize)
editor_action * up_right(editor_display &disp, int x, int y)
If clicked on a village hex field, unassigns it's ownership.
GLclampf GLclampf GLclampf alpha
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.
Encapsulates the map of the game.
Base class for all editor actions.
GLint GLint GLint GLint GLint x
GLdouble GLdouble GLdouble r
SDL_Rect create_rect(const int x, const int y, const int w, const int h)
Creates an empty SDL_Rect.
bool on_board(const map_location &loc) const
Tell if a location is on the map.
const gamemap & get_map() const
this module manages the cache of images.
editor_action * up_left(editor_display &disp, int x, int y)
If clicked on a village hex field, assigns the ownership of it to the current side.
Clears the ownership of a village.