Freeciv-3.2
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
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
42void overview_update_tile(struct tile *ptile);
44void overview_free(void);
45
47
48void flush_dirty_overview(void);
49
51
52#ifdef __cplusplus
53}
54#endif /* __cplusplus */
55
56#endif /* FC__OVERVIEW_COMMON_H */
char * incite_cost
Definition comments.c:75
void flush_dirty_overview(void)
void overview_to_map_pos(int *map_x, int *map_y, int overview_x, int overview_y)
void overview_redraw_callback(struct option *option)
void refresh_overview_canvas(void)
void center_tile_overviewcanvas(void)
void refresh_overview_from_canvas(void)
void overview_update_tile(struct tile *ptile)
int OVERVIEW_TILE_SIZE
void calculate_overview_dimensions(void)
void overview_free(void)
void map_to_overview_pos(int *overview_x, int *overview_y, int map_x, int map_y)
Definition tile.h:50