Freeciv-3.2: /fast/freeciv/nightly/S3_2/tools/ruledit/validity.h Source File

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
20 typedef 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);
25bool is_achievement_needed(struct achievement *pach, requirers_cb cb,
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 */
incite_cost
char * incite_cost
Definition comments.c:74
achievement
Definition achievements.h:26
advance
Definition tech.h:124
counter
Definition counters.h:27
extra_type
Definition extras.h:88
goods_type
Definition traderoutes.h:183
government
Definition government.h:52
impr_type
Definition improvement.h:50
multiplier
Definition multipliers.h:31
terrain
Definition terrain.h:182
unit_type
Definition unittype.h:500
is_achievement_needed
bool is_achievement_needed(struct achievement *pach, requirers_cb cb, void *data)
Definition validity.c:273
is_multiplier_needed
bool is_multiplier_needed(struct multiplier *pmul, requirers_cb cb, void *data)
Definition validity.c:396
is_counter_needed
bool is_counter_needed(struct counter *pcount, requirers_cb cb, void *data)
Definition validity.c:189
is_tech_needed
bool is_tech_needed(struct advance *padv, requirers_cb cb, void *data)
Definition validity.c:199
is_terrain_needed
bool is_terrain_needed(struct terrain *pterr, requirers_cb cb, void *data)
Definition validity.c:331
is_good_needed
bool is_good_needed(struct goods_type *pgood, requirers_cb cb, void *data)
Definition validity.c:287
is_government_needed
bool is_government_needed(struct government *pgov, requirers_cb cb, void *data)
Definition validity.c:358
is_utype_needed
bool is_utype_needed(struct unit_type *ptype, requirers_cb cb, void *data)
Definition validity.c:252
requirers_cb
void(* requirers_cb)(const char *msg, void *data)
Definition validity.h:20
is_extra_needed
bool is_extra_needed(struct extra_type *pextra, requirers_cb cb, void *data)
Definition validity.c:301
is_building_needed
bool is_building_needed(struct impr_type *pimpr, requirers_cb cb, void *data)
Definition validity.c:238