Freeciv-3.3: /fast/freeciv/nightly/main/client/agents/cma_fec.h Source File

Freeciv-3.3

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);
45int cmafec_preset_get_index_of_parameter(const struct cm_parameter
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
51void create_default_cma_presets(void);
52
53#ifdef __cplusplus
54}
55#endif /* __cplusplus */
56
57#endif /* FC__CMAFEC_H */
cma_core.h
cmafec_get_short_descr
const char * cmafec_get_short_descr(const struct cm_parameter *const parameter)
Definition cma_fec.c:236
cmafec_set_fe_parameter
void cmafec_set_fe_parameter(struct city *pcity, const struct cm_parameter *const parameter)
Definition cma_fec.c:105
cmafec_free
void cmafec_free(void)
Definition cma_fec.c:94
cmafec_preset_get_descr
char * cmafec_preset_get_descr(int idx)
Definition cma_fec.c:169
cmafec_get_result_descr
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
cmafec_get_short_descr_of_city
const char * cmafec_get_short_descr_of_city(const struct city *pcity)
Definition cma_fec.c:221
cmafec_preset_get_parameter
const struct cm_parameter * cmafec_preset_get_parameter(int idx)
Definition cma_fec.c:182
cmafec_preset_add
void cmafec_preset_add(const char *descr_name, struct cm_parameter *pparam)
Definition cma_fec.c:136
cmafec_preset_get_index_of_parameter
int cmafec_preset_get_index_of_parameter(const struct cm_parameter *const parameter)
Definition cma_fec.c:196
cmafec_preset_remove
void cmafec_preset_remove(int idx)
Definition cma_fec.c:153
cmafec_init
void cmafec_init(void)
Definition cma_fec.c:76
cmafec_preset_num
int cmafec_preset_num(void)
Definition cma_fec.c:213
create_default_cma_presets
void create_default_cma_presets(void)
Definition cma_fec.c:384
cmafec_get_fe_parameter
void cmafec_get_fe_parameter(struct city *pcity, struct cm_parameter *dest)
Definition cma_fec.c:115
incite_cost
char * incite_cost
Definition comments.c:74
city
Definition city.h:320
cm_parameter
Definition cm.h:40
cm_result
Definition cm.h:52