Freeciv-3.2
Loading...
Searching...
No Matches
cityturn.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
14#ifndef FC__CITYTURN_H
15#define FC__CITYTURN_H
16
17/* utility */
18#include "support.h" /* bool type */
19
20/* common */
21#include "fc_types.h"
22
23struct conn_list;
24struct cm_result;
25
26bool city_refresh(struct city *pcity); /* Call if city has changed */
27void city_refresh_for_player(struct player *pplayer); /* Tax/govt changed */
28
29void city_refresh_queue_add(struct city *pcity);
31
32void auto_arrange_workers(struct city *pcity); /* Will arrange the workers */
33void apply_cmresult_to_city(struct city *pcity, const struct cm_result *cmr);
34
35bool city_change_size(struct city *pcity, citizens new_size,
36 struct player *nationality, const char *reason);
37bool city_reduce_size(struct city *pcity, citizens pop_loss,
38 struct player *destroyer, const char *reason);
39void city_repair_size(struct city *pcity, int change);
40
41bool city_empty_food_stock(struct city *pcity);
42int city_growth_granary_savings(const struct city *pcity);
43int city_shrink_granary_savings(const struct city *pcity);
44
46void update_city_activities(struct player *pplayer)
48int city_incite_cost(struct player *pplayer, struct city *pcity);
49void remove_obsolete_buildings_city(struct city *pcity, bool refresh);
50void remove_obsolete_buildings(struct player *pplayer);
51
52void choose_build_target(struct player *pplayer, struct city *pcity);
53
54void nullify_prechange_production(struct city *pcity);
55
56bool check_city_migrations(void);
57
58void check_disasters(void);
59
60void city_tc_effect_refresh(struct player *pplayer);
61
62void city_style_refresh(struct city *pcity);
63
65bool player_balance_treasury_units(struct player *pplayer);
66
67void city_counters_refresh(struct city *pcity);
68
69#endif /* FC__CITYTURN_H */
void remove_obsolete_buildings(struct player *pplayer)
Definition cityturn.c:271
int city_shrink_granary_savings(const struct city *pcity)
Definition cityturn.c:893
bool city_change_size(struct city *pcity, citizens new_size, struct player *nationality, const char *reason)
Definition cityturn.c:1032
void choose_build_target(struct player *pplayer, struct city *pcity)
Definition cityturn.c:2387
void auto_arrange_workers(struct city *pcity)
Definition cityturn.c:367
void city_refresh_queue_add(struct city *pcity)
Definition cityturn.c:198
void nullify_prechange_production(struct city *pcity)
Definition cityturn.c:3544
bool city_empty_food_stock(struct city *pcity)
Definition cityturn.c:4249
bool check_city_migrations(void)
Definition cityturn.c:4217
bool player_balance_treasury_units_and_buildings(struct player *pplayer)
Definition cityturn.c:3197
void city_repair_size(struct city *pcity, int change)
Definition cityturn.c:852
void city_counters_refresh(struct city *pcity)
Definition cityturn.c:4583
void send_city_turn_notifications(struct connection *pconn)
Definition cityturn.c:577
int city_incite_cost(struct player *pplayer, struct city *pcity)
Definition cityturn.c:3432
bool city_reduce_size(struct city *pcity, citizens pop_loss, struct player *destroyer, const char *reason)
Definition cityturn.c:763
bool city_refresh(struct city *pcity)
Definition cityturn.c:159
void apply_cmresult_to_city(struct city *pcity, const struct cm_result *cmr)
Definition cityturn.c:282
void update_city_activities(struct player *pplayer) fc__attribute((nonnull(1)))
Definition cityturn.c:603
bool player_balance_treasury_units(struct player *pplayer)
Definition cityturn.c:3260
void city_style_refresh(struct city *pcity)
Definition cityturn.c:4574
void city_refresh_for_player(struct player *pplayer)
Definition cityturn.c:183
void city_tc_effect_refresh(struct player *pplayer)
Definition cityturn.c:4604
void check_disasters(void)
Definition cityturn.c:4378
void city_refresh_queue_processing(void)
Definition cityturn.c:214
int city_growth_granary_savings(const struct city *pcity)
Definition cityturn.c:879
void remove_obsolete_buildings_city(struct city *pcity, bool refresh)
Definition cityturn.c:236
char * incite_cost
Definition comments.c:75
unsigned char citizens
Definition fc_types.h:388
Definition city.h:320
Definition cm.h:52
#define fc__attribute(x)
Definition support.h:99