Freeciv-3.3: /fast/freeciv/nightly/main/common/clientutils.h Source File

Freeciv-3.3

Loading...
Searching...
No Matches
clientutils.h
Go to the documentation of this file.
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__CLIENTUTILS_H
14#define FC__CLIENTUTILS_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20/* common */
21#include "fc_types.h"
22
23struct astring;
24struct extra_type;
25struct tile;
26struct unit;
27struct unit_list;
28
29int turns_to_activity_done(const struct tile *ptile,
30 Activity_type_id act,
31 const struct extra_type *tgt,
32 const struct unit *pnewunit);
33const char *concat_tile_activity_text(struct tile *ptile);
34
35void combat_odds_to_astr(struct astring *str, struct unit_list *punits,
36 const struct tile *ptile, const struct unit *punit,
37 const char *pct_str);
38
39#ifdef __cplusplus
40}
41#endif /* __cplusplus */
42
43#endif /* FC__CLIENTUTILS_H */
str
#define str
Definition astring.c:76
combat_odds_to_astr
void combat_odds_to_astr(struct astring *str, struct unit_list *punits, const struct tile *ptile, const struct unit *punit, const char *pct_str)
Definition clientutils.c:312
concat_tile_activity_text
const char * concat_tile_activity_text(struct tile *ptile)
Definition clientutils.c:237
turns_to_activity_done
int turns_to_activity_done(const struct tile *ptile, Activity_type_id act, const struct extra_type *tgt, const struct unit *pnewunit)
Definition clientutils.c:204
incite_cost
char * incite_cost
Definition comments.c:74
punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
Definition dialogs_g.h:74
fc_types.h
Activity_type_id
enum unit_activity Activity_type_id
Definition fc_types.h:383
astring
Definition astring.h:36
extra_type
Definition extras.h:88
tile
Definition tile.h:50
unit
Definition unit.h:140