1 /***********************************************************************
2 Freeciv - Copyright (C) 2001 - R. Falke
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)
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 ***********************************************************************/
19 #endif /* __cplusplus */
24 void cmafec_init(void);
25 void cmafec_free(void);
27 void cmafec_set_fe_parameter(struct city
*pcity
,
28 const struct cm_parameter
*const parameter
);
29 void cmafec_get_fe_parameter(struct city
*pcity
,
30 struct cm_parameter
*dest
);
32 const char *cmafec_get_short_descr(const struct cm_parameter
*const
34 const char *cmafec_get_short_descr_of_city(const struct city
*pcity
);
35 const char *cmafec_get_result_descr(struct city
*pcity
,
36 const struct cm_result
*result
,
37 const struct cm_parameter
*const
43 void cmafec_preset_add(const char *descr_name
, struct cm_parameter
*pparam
);
44 void cmafec_preset_remove(int idx
);
45 int cmafec_preset_get_index_of_parameter(const struct cm_parameter
47 char *cmafec_preset_get_descr(int idx
);
48 const struct cm_parameter
*cmafec_preset_get_parameter(int idx
);
49 int cmafec_preset_num(void);
51 void create_default_cma_presets(void);
55 #endif /* __cplusplus */
57 #endif /* FC__CMAFEC_H */