Freeciv-3.3
Loading...
Searching...
No Matches
mapview.c
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18/* utility */
19#include "fcintl.h"
20#include "support.h"
21
22/* common */
23#include "calendar.h"
24#include "game.h"
25
26/* gui main header */
27#include "gui_stub.h"
28
29/* client */
30#include "client_main.h"
31#include "climisc.h"
32#include "control.h"
33#include "mapctrl_common.h"
34
35#include "mapview.h"
36
37/************************************************************************/
43{
44 /* PORTME */
45 char buffer[512];
46
47 fc_snprintf(buffer, sizeof(buffer),
48 _("Population: %s\n"
49 "Year: %s\n"
50 "Gold %d\n"
51 "Tax: %d Lux: %d Sci: %d"),
58
59 /* ... */
60}
61
62/************************************************************************/
74void update_unit_info_label(struct unit_list *punitlist)
75{
76 /* PORTME */
77}
78
79/************************************************************************/
84{
85 /* PORTME */
86}
87
88/************************************************************************/
93{
94 /* PORTME */
95
96 /* set some widget based on get_timeout_label_text() */
97}
98
99/************************************************************************/
106{
107 static bool flip = FALSE;
108
110 return;
111 }
112
113 if ((do_restore && flip) || !do_restore) {
114 /* ... */
115
116 flip = !flip;
117 }
118 /* PORTME */
119}
120
121/************************************************************************/
127 struct sprite *flake, struct sprite *gov)
128{
129 /* PORTME */
130}
131
132/************************************************************************/
136{
137 /* PORTME */
138 return nullptr;
139}
140
141/************************************************************************/
146 int pixel_width, int pixel_height)
147{
148 /* PORTME */
149}
150
151/************************************************************************/
154void dirty_all(void)
155{
156 /* PORTME */
157}
158
159/************************************************************************/
164void flush_dirty(void)
165{
166 /* PORTME */
167}
168
169/************************************************************************/
174void gui_flush(void)
175{
176 /* PORTME */
177}
178
179/************************************************************************/
184{
185 /* PORTME */
186}
187
188/************************************************************************/
192{
193 /* PORTME */
194}
195
196/************************************************************************/
203
204/************************************************************************/
207void put_cross_overlay_tile(struct tile *ptile)
208{
209 /* PORTME */
210}
211
212/************************************************************************/
215void draw_selection_rectangle(int canvas_x, int canvas_y, int w, int h)
216{
217 /* PORTME */
218}
219
220/**********************************************************************/
224{
225 /* Needed only with full screen zoom mode.
226 * Not needed, nor implemented, in this client. */
228}
229
230/************************************************************************/
234{
235 /* PORTME */
236 /* Here you should do any necessary redraws (for instance, the city
237 * dialogs usually need to be resized). */
238}
239
240/************************************************************************/
245{
246 /* PORTME */
247 *width = 0;
248 *height = 0;
249}
250
251/************************************************************************/
258{
259 /* PORTME */
260}
261
262/************************************************************************/
266{
267 /* TODO: PORTME. */
268}
269
270/************************************************************************/
274{
275 /* PORTME */
276}
const char * calendar_text(void)
Definition calendar.c:142
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
struct canvas int int canvas_y
Definition canvas_g.h:43
struct canvas int canvas_x
Definition canvas_g.h:43
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
struct civclient client
#define client_player()
char * incite_cost
Definition comments.c:76
bool get_turn_done_button_state()
#define _(String)
Definition fcintl.h:67
const char * population_to_text(int thousand_citizen)
Definition game.c:739
int civ_population(const struct player *pplayer)
Definition game.c:73
void flush_dirty(void)
Definition mapview.c:468
void update_info_label(void)
Definition mapview.c:138
void update_turn_done_button(bool do_restore)
Definition mapview.c:76
void dirty_all(void)
Definition mapview.c:456
void tileset_changed(void)
Definition mapview.c:782
void put_cross_overlay_tile(struct tile *ptile)
Definition mapview.c:643
void draw_selection_rectangle(int canvas_x, int canvas_y, int w, int h)
Definition mapview.c:749
void update_map_canvas_scrollbars_size(void)
Definition mapview.c:696
void get_overview_area_dimensions(int *width, int *height)
Definition mapview.c:317
void update_unit_info_label(struct unit_list *punits)
Definition mapview.c:275
void update_overview_scroll_window_pos(int x, int y)
Definition mapview.c:657
void update_city_descriptions(void)
Definition mapview.c:488
void gui_flush(void)
Definition mapview.c:480
void update_map_canvas_scrollbars(void)
Definition mapview.c:681
void overview_size_changed(void)
Definition mapview.c:326
struct canvas * get_overview_window(void)
Definition mapview.c:337
void update_mouse_cursor(enum cursor_type new_cursor_type)
Definition mapview.c:257
void set_indicator_icons(struct sprite *bulb, struct sprite *sol, struct sprite *flake, struct sprite *gov)
Definition mapview.c:302
void gui_map_canvas_size_refresh(void)
Definition mapview.c:223
void gui_update_timeout_label(void)
Definition mapview.c:92
void gui_start_turn(void)
Definition mapview.c:273
#define fc_assert(condition)
Definition log.h:177
void update_map_canvas_visible(void)
dirty_rect
Definition mapview_g.h:47
int int int pixel_width
Definition mapview_g.h:48
struct sprite int int y
Definition sprite_g.h:31
struct sprite int x
Definition sprite_g.h:31
struct connection conn
Definition client_main.h:96
struct player * playing
Definition connection.h:151
struct player_economic economic
Definition player.h:284
Definition tile.h:50
int fc_snprintf(char *str, size_t n, const char *format,...)
Definition support.c:960
#define FALSE
Definition support.h:47
cursor_type
Definition tilespec.h:289