Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/overview_common.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
overview_common.h
Go to the documentation of this file.
1/**********************************************************************
2 Freeciv - Copyright (C) 1996-2005 - Freeciv Development Team
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#ifndef FC__OVERVIEW_COMMON_H
15#define FC__OVERVIEW_COMMON_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21#include "fc_types.h"
22
23#include "canvas_g.h"
24
25#include "options.h"
26
27/* The overview tile width and height are defined in terms of the base
28 * size. For iso-maps the width is twice the height since "natural"
29 * coordinates are used. For classical maps the width and height are
30 * equal. The base size may be adjusted to get the correct scale. */
31extern int OVERVIEW_TILE_SIZE;
32#define OVERVIEW_TILE_WIDTH ((MAP_IS_ISOMETRIC ? 2 : 1) * OVERVIEW_TILE_SIZE)
33#define OVERVIEW_TILE_HEIGHT OVERVIEW_TILE_SIZE
34
35void map_to_overview_pos(int *overview_x, int *overview_y,
36 int map_x, int map_y);
37void overview_to_map_pos(int *map_x, int *map_y,
38 int overview_x, int overview_y);
39
40void refresh_overview_canvas(void);
41void refresh_overview_from_canvas(void);
42void overview_update_tile(struct tile *ptile);
43void calculate_overview_dimensions(void);
44void overview_free(void);
45
46void center_tile_overviewcanvas(void);
47
48void flush_dirty_overview(void);
49
50void overview_redraw_callback(struct option *option);
51
52#ifdef __cplusplus
53}
54#endif /* __cplusplus */
55
56#endif /* FC__OVERVIEW_COMMON_H */
canvas_g.h
fc_types.h
options.h
flush_dirty_overview
void flush_dirty_overview(void)
Definition overview_common.c:261
overview_to_map_pos
void overview_to_map_pos(int *map_x, int *map_y, int overview_x, int overview_y)
Definition overview_common.c:356
overview_redraw_callback
void overview_redraw_callback(struct option *option)
Definition overview_common.c:522
refresh_overview_canvas
void refresh_overview_canvas(void)
Definition overview_common.c:375
center_tile_overviewcanvas
void center_tile_overviewcanvas(void)
Definition overview_common.c:287
refresh_overview_from_canvas
void refresh_overview_from_canvas(void)
Definition overview_common.c:185
overview_update_tile
void overview_update_tile(struct tile *ptile)
Definition overview_common.c:409
OVERVIEW_TILE_SIZE
int OVERVIEW_TILE_SIZE
Definition overview_common.c:33
calculate_overview_dimensions
void calculate_overview_dimensions(void)
Definition overview_common.c:448
overview_free
void overview_free(void)
Definition overview_common.c:509
map_to_overview_pos
void map_to_overview_pos(int *overview_x, int *overview_y, int map_x, int map_y)
Definition overview_common.c:322
option
Definition options.c:454
tile
Definition tile.h:49