Freeciv-3.2
Loading...
Searching...
No Matches
validity.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__VALIDITY_H
14#define FC__VALIDITY_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20typedef void (*requirers_cb)(const char *msg, void *data);
21
22bool is_tech_needed(struct advance *padv, requirers_cb cb, void *data);
23bool is_building_needed(struct impr_type *pimpr, requirers_cb cb, void *data);
24bool is_utype_needed(struct unit_type *ptype, requirers_cb cb, void *data);
26 void *data);
27bool is_good_needed(struct goods_type *pgood, requirers_cb cb, void *data);
28bool is_government_needed(struct government *pgov, requirers_cb cb, void *data);
29bool is_extra_needed(struct extra_type *pextra, requirers_cb cb, void *data);
30bool is_multiplier_needed(struct multiplier *pmul, requirers_cb cb, void *data);
31bool is_terrain_needed(struct terrain *pterr, requirers_cb cb, void *data);
32bool is_counter_needed(struct counter *pcount, requirers_cb cb, void *data);
33
34#ifdef __cplusplus
35}
36#endif /* __cplusplus */
37
38#endif /* FC__VALIDITY_H */
char * incite_cost
Definition comments.c:75
bool is_achievement_needed(struct achievement *pach, requirers_cb cb, void *data)
Definition validity.c:273
bool is_multiplier_needed(struct multiplier *pmul, requirers_cb cb, void *data)
Definition validity.c:396
bool is_counter_needed(struct counter *pcount, requirers_cb cb, void *data)
Definition validity.c:189
bool is_tech_needed(struct advance *padv, requirers_cb cb, void *data)
Definition validity.c:199
bool is_terrain_needed(struct terrain *pterr, requirers_cb cb, void *data)
Definition validity.c:331
bool is_good_needed(struct goods_type *pgood, requirers_cb cb, void *data)
Definition validity.c:287
bool is_government_needed(struct government *pgov, requirers_cb cb, void *data)
Definition validity.c:358
bool is_utype_needed(struct unit_type *ptype, requirers_cb cb, void *data)
Definition validity.c:252
void(* requirers_cb)(const char *msg, void *data)
Definition validity.h:20
bool is_extra_needed(struct extra_type *pextra, requirers_cb cb, void *data)
Definition validity.c:301
bool is_building_needed(struct impr_type *pimpr, requirers_cb cb, void *data)
Definition validity.c:238