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 17 extern "C" { 18 #endif /* __cplusplus */ 19 20 typedef void (*requirers_cb)(const char *msg); 21 22 bool is_tech_needed(struct advance *padv, requirers_cb cb); 23 bool is_building_needed(struct impr_type *pimpr, requirers_cb cb); 24 bool is_utype_needed(struct unit_type *ptype, requirers_cb cb); 25 26 #ifdef __cplusplus 27 } 28 #endif /* __cplusplus */ 29 30 #endif /* FC__VALIDITY_H */ 31