Freeciv-3.4
Loading...
Searching...
No Matches
accessarea.h
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#ifndef FC__ACCESSAREA_H
14#define FC__ACCESSAREA_H
15
16/* common */
17#include "city.h"
18#include "fc_types.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
24/* get 'struct access_area_list' and related functions: */
25#define SPECLIST_TAG aarea
26#define SPECLIST_TYPE struct access_area
27#include "speclist.h"
28
29#define aarea_list_iterate(aarealist, parea) \
30 TYPED_LIST_ITERATE(struct access_area, aarealist, parea)
31#define aarea_list_iterate_end LIST_ITERATE_END
32
33void access_info_init(const struct unit_type *aunit);
34void access_info_close(void);
35const struct unit_type *access_info_access_unit(void);
36
37void access_areas_refresh(struct civ_map *nmap, struct player *plr);
38
39#ifdef __cplusplus
40}
41#endif /* __cplusplus */
42
43#endif /* FC__ACCESSAREA_H */
void access_info_init(const struct unit_type *aunit)
Definition accessarea.c:40
void access_info_close(void)
Definition accessarea.c:56
void access_areas_refresh(struct civ_map *nmap, struct player *plr)
Definition accessarea.c:96
const struct unit_type * access_info_access_unit(void)
Definition accessarea.c:72
char * incite_cost
Definition comments.c:76