Freeciv21
Develop your civilization from humble roots to a global empire
validity.h
Go to the documentation of this file.
1 /*__ ___ ***************************************
2 / \ / \ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3 \_ \ / __/ contributors. This file is part of Freeciv21.
4  _\ \ / /__ Freeciv21 is free software: you can redistribute it
5  \___ \____/ __/ and/or modify it under the terms of the GNU General
6  \_ _/ Public License as published by the Free Software
7  | @ @ \_ Foundation, either version 3 of the License,
8  | or (at your option) any later version.
9  _/ /\ You should have received a copy of the GNU
10  /o) (o/\ \_ General Public License along with Freeciv21.
11  \_____/ / If not, see https://www.gnu.org/licenses/.
12  \____/ ********************************************************/
13 #ifndef FC__VALIDITY_H
14 #define FC__VALIDITY_H
15 
16 typedef void (*requirers_cb)(const char *msg, void *data);
17 
18 bool is_tech_needed(struct advance *padv, requirers_cb cb, void *data);
19 bool is_building_needed(struct impr_type *pimpr, requirers_cb cb,
20  void *data);
21 bool is_utype_needed(struct unit_type *ptype, requirers_cb cb, void *data);
22 bool is_good_needed(struct goods_type *pgood, requirers_cb cb, void *data);
23 bool is_government_needed(struct government *pgov, requirers_cb cb,
24  void *data);
25 bool is_extra_needed(struct extra_type *pextra, requirers_cb cb, void *data);
26 bool is_multiplier_needed(struct multiplier *pmul, requirers_cb cb,
27  void *data);
28 bool is_terrain_needed(struct terrain *pterr, requirers_cb cb, void *data);
29 
30 #endif // FC__VALIDITY_H
Definition: tech.h:113
bool is_multiplier_needed(struct multiplier *pmul, requirers_cb cb, void *data)
Check if anything in ruleset needs multiplier.
Definition: validity.cpp:337
bool is_tech_needed(struct advance *padv, requirers_cb cb, void *data)
Check if anything in ruleset needs tech.
Definition: validity.cpp:170
bool is_terrain_needed(struct terrain *pterr, requirers_cb cb, void *data)
Check if anything in ruleset needs terrain type.
Definition: validity.cpp:286
bool is_good_needed(struct goods_type *pgood, requirers_cb cb, void *data)
Check if anything in ruleset needs goods type.
Definition: validity.cpp:242
bool is_government_needed(struct government *pgov, requirers_cb cb, void *data)
Check if anything in ruleset needs government.
Definition: validity.cpp:299
bool is_utype_needed(struct unit_type *ptype, requirers_cb cb, void *data)
Check if anything in ruleset needs unit type.
Definition: validity.cpp:229
void(* requirers_cb)(const char *msg, void *data)
Definition: validity.h:16
bool is_extra_needed(struct extra_type *pextra, requirers_cb cb, void *data)
Check if anything in ruleset needs extra type.
Definition: validity.cpp:255
bool is_building_needed(struct impr_type *pimpr, requirers_cb cb, void *data)
Check if anything in ruleset needs building.
Definition: validity.cpp:215