Freeciv-3.1: /fast/freeciv/nightly/S3_1/server/citizenshand.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
citizenshand.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__CITIZENSHAND_H
14#define FC__CITIZENSHAND_H
15
16struct city;
17
18 struct citizens_reduction {
19 struct player_slot *pslot;
20 citizens change;
21};
22
23void citizens_update(struct city *pcity, struct player *plr);
24void citizens_convert(struct city *pcity);
25void citizens_convert_conquest(struct city *pcity);
26struct player
27*citizens_unit_nationality(const struct city *pcity,
28 int pop_cost,
29 struct citizens_reduction *pchange);
30void citizens_reduction_apply(struct city *pcity,
31 const struct citizens_reduction *pchange);
32
33void citizens_print(const struct city *pcity);
34
35#endif /* FC__CITIZENSHAND_H */
citizens_unit_nationality
struct player * citizens_unit_nationality(const struct city *pcity, int pop_cost, struct citizens_reduction *pchange)
Definition citizenshand.c:59
citizens_convert_conquest
void citizens_convert_conquest(struct city *pcity)
Definition citizenshand.c:386
citizens_reduction_apply
void citizens_reduction_apply(struct city *pcity, const struct citizens_reduction *pchange)
Definition citizenshand.c:173
citizens_convert
void citizens_convert(struct city *pcity)
Definition citizenshand.c:340
citizens_update
void citizens_update(struct city *pcity, struct player *plr)
Definition citizenshand.c:202
citizens_print
void citizens_print(const struct city *pcity)
Definition citizenshand.c:299
citizens
unsigned char citizens
Definition fc_types.h:358
citizens_reduction
Definition citizenshand.h:18
citizens_reduction::pslot
struct player_slot * pslot
Definition citizenshand.h:19
citizens_reduction::change
citizens change
Definition citizenshand.h:20
city
Definition city.h:309
player_slot
Definition player.c:45
player
Definition player.h:249