Freeciv-3.4
Loading...
Searching...
No Matches
citymap.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2003 - Per I. Mathisen
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#ifndef FC__CITYMAP_H
14#define FC__CITYMAP_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20/* utility */
21#include "support.h" /* bool type */
22
23struct player;
24struct tile;
25
26void citymap_turn_init(struct player *pplayer);
27void citymap_reserve_city_spot(struct tile *ptile, int id);
28void citymap_free_city_spot(struct tile *ptile, int id);
29void citymap_reserve_tile(struct tile *ptile, int id);
30int citymap_read(struct tile *ptile);
31bool citymap_is_reserved(struct tile *ptile);
32
33void citymap_free(void);
34
35#ifdef __cplusplus
36}
37#endif /* __cplusplus */
38
39#endif /* FC__CITYMAP_H */
void citymap_free_city_spot(struct tile *ptile, int id)
Definition citymap.c:150
void citymap_reserve_tile(struct tile *ptile, int id)
Definition citymap.c:167
void citymap_reserve_city_spot(struct tile *ptile, int id)
Definition citymap.c:122
bool citymap_is_reserved(struct tile *ptile)
Definition citymap.c:190
int citymap_read(struct tile *ptile)
Definition citymap.c:181
void citymap_free(void)
Definition citymap.c:110
void citymap_turn_init(struct player *pplayer)
Definition citymap.c:61
Definition tile.h:50