Freeciv-3.2
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,
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 */
#define str
Definition astring.c:76
void combat_odds_to_astr(struct astring *str, struct unit_list *punits, const struct tile *ptile, const struct unit *punit, const char *pct_str)
const char * concat_tile_activity_text(struct tile *ptile)
int turns_to_activity_done(const struct tile *ptile, Activity_type_id act, const struct extra_type *tgt, const struct unit *pnewunit)
char * incite_cost
Definition comments.c:75
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
enum unit_activity Activity_type_id
Definition fc_types.h:379
Definition tile.h:50
Definition unit.h:138