Freeciv21
Develop your civilization from humble roots to a global empire
mapview_g.h
Go to the documentation of this file.
1 /*__ ___ ***************************************
2 / \ / \ Copyright (c) 1996-2023 Freeciv21 and Freeciv
3 \_ \ / __/ contributors. This file is part of Freeciv21.
4  _\ \ / /__ Freeciv21 is free software: you can redistribute it
5  \___ \____/ __/ and/or modify it under the terms of the GNU General
6  \_ _/ Public License as published by the Free Software
7  | @ @ \_ Foundation, either version 3 of the License,
8  | or (at your option) any later version.
9  _/ /\ You should have received a copy of the GNU
10  /o) (o/\ \_ General Public License along with Freeciv21.
11  \_____/ / If not, see https://www.gnu.org/licenses/.
12  \____/ ********************************************************/
13 #pragma once
14 
15 // utility
16 #include "support.h" // bool type
17 
18 // common
19 #include "fc_types.h"
20 #include "unitlist.h"
21 
22 // client
23 #include "views/view_map_common.h"
24 
25 void update_info_label(void);
26 void update_unit_info_label(const std::vector<unit *> &unit_list);
27 void update_mouse_cursor(enum cursor_type new_cursor_type);
28 void update_turn_done_button(bool do_restore);
29 void update_minimap(void);
30 
31 void dirty_rect(int canvas_x, int canvas_y, int pixel_width,
32  int pixel_height);
33 void dirty_all(void);
34 void flush_dirty(void);
35 
36 void put_cross_overlay_tile(struct tile *ptile);
37 
38 void draw_selection_rectangle(int canvas_x, int canvas_y, int w, int h);
39 void tileset_changed(void);
40 void show_city_desc(QPixmap *pcanvas, int canvas_x, int canvas_y,
41  struct city *pcity, int *width, int *height);
42 
43 void debug_tile(tile *t);
void flush_dirty(void)
Flush all regions that have been previously marked as dirty.
Definition: view_map.cpp:507
void debug_tile(tile *t)
Callback to set the tile being debugged.
Definition: view_map.cpp:757
void update_info_label(void)
Typically an info box is provided to tell the player about the state of their civilization.
Definition: page_game.cpp:750
void update_turn_done_button(bool do_restore)
If do_restore is false it should change the turn button style (to draw the user's attention to it).
Definition: view_map.cpp:468
void dirty_all(void)
Mark the entire screen area as "dirty" so that we can flush it later.
Definition: view_map.cpp:494
void tileset_changed(void)
This function is called when the tileset is changed.
Definition: view_map.cpp:554
void put_cross_overlay_tile(struct tile *ptile)
Draw a cross-hair overlay on a tile.
Definition: view_map.cpp:533
void draw_selection_rectangle(int canvas_x, int canvas_y, int w, int h)
Area Selection.
Definition: view_map.cpp:546
void dirty_rect(int canvas_x, int canvas_y, int pixel_width, int pixel_height)
Mark the rectangular region as "dirty" so that we know to flush it later.
Definition: view_map.cpp:480
void update_minimap(void)
Return a canvas that is the overview window.
Definition: minimap.cpp:256
void show_city_desc(QPixmap *pcanvas, int canvas_x, int canvas_y, struct city *pcity, int *width, int *height)
Draw a description for the given city.
Definition: view_map.cpp:733
void update_unit_info_label(const std::vector< unit * > &unit_list)
Update the information label which gives info on the current unit and the tile under the current unit...
Definition: view_map.cpp:446
void update_mouse_cursor(enum cursor_type new_cursor_type)
Update the mouse cursor.
Definition: view_map.cpp:457
Definition: city.h:291
Definition: tile.h:42
cursor_type
Definition: tilespec.h:154