Freeciv-3.2
Loading...
Searching...
No Matches
cma_fec.h
Go to the documentation of this file.
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)
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
14#ifndef FC__CMAFEC_H
15#define FC__CMAFEC_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21/* client/agents */
22#include "cma_core.h"
23
24void cmafec_init(void);
25void cmafec_free(void);
26
27void cmafec_set_fe_parameter(struct city *pcity,
28 const struct cm_parameter *const parameter);
29void cmafec_get_fe_parameter(struct city *pcity,
30 struct cm_parameter *dest);
31
32const char *cmafec_get_short_descr(const struct cm_parameter *const
33 parameter);
34const char *cmafec_get_short_descr_of_city(const struct city *pcity);
35const char *cmafec_get_result_descr(struct city *pcity,
36 const struct cm_result *result,
37 const struct cm_parameter *const
38 parameter);
39
40/*
41 * Preset handling
42 */
43void cmafec_preset_add(const char *descr_name, struct cm_parameter *pparam);
44void cmafec_preset_remove(int idx);
46 *const parameter);
47char *cmafec_preset_get_descr(int idx);
48const struct cm_parameter *cmafec_preset_get_parameter(int idx);
49int cmafec_preset_num(void);
50
52
53#ifdef __cplusplus
54}
55#endif /* __cplusplus */
56
57#endif /* FC__CMAFEC_H */
const char * cmafec_get_short_descr(const struct cm_parameter *const parameter)
Definition cma_fec.c:236
void cmafec_set_fe_parameter(struct city *pcity, const struct cm_parameter *const parameter)
Definition cma_fec.c:105
void cmafec_free(void)
Definition cma_fec.c:94
char * cmafec_preset_get_descr(int idx)
Definition cma_fec.c:169
const char * cmafec_get_result_descr(struct city *pcity, const struct cm_result *result, const struct cm_parameter *const parameter)
Definition cma_fec.c:322
const char * cmafec_get_short_descr_of_city(const struct city *pcity)
Definition cma_fec.c:221
const struct cm_parameter * cmafec_preset_get_parameter(int idx)
Definition cma_fec.c:182
void cmafec_preset_add(const char *descr_name, struct cm_parameter *pparam)
Definition cma_fec.c:136
int cmafec_preset_get_index_of_parameter(const struct cm_parameter *const parameter)
Definition cma_fec.c:196
void cmafec_preset_remove(int idx)
Definition cma_fec.c:153
void cmafec_init(void)
Definition cma_fec.c:76
int cmafec_preset_num(void)
Definition cma_fec.c:213
void create_default_cma_presets(void)
Definition cma_fec.c:384
void cmafec_get_fe_parameter(struct city *pcity, struct cm_parameter *dest)
Definition cma_fec.c:115
char * incite_cost
Definition comments.c:75
Definition city.h:320
Definition cm.h:52