Freeciv-3.3
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
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
36 struct player *nationality, const char *reason);
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
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:270
int city_shrink_granary_savings(const struct city *pcity)
Definition cityturn.c:892
bool city_change_size(struct city *pcity, citizens new_size, struct player *nationality, const char *reason)
Definition cityturn.c:1031
void choose_build_target(struct player *pplayer, struct city *pcity)
Definition cityturn.c:2408
void auto_arrange_workers(struct city *pcity)
Definition cityturn.c:366
void city_refresh_queue_add(struct city *pcity)
Definition cityturn.c:197
void nullify_prechange_production(struct city *pcity)
Definition cityturn.c:3567
bool city_empty_food_stock(struct city *pcity)
Definition cityturn.c:4272
bool check_city_migrations(void)
Definition cityturn.c:4240
bool player_balance_treasury_units_and_buildings(struct player *pplayer)
Definition cityturn.c:3220
void city_repair_size(struct city *pcity, int change)
Definition cityturn.c:851
void city_counters_refresh(struct city *pcity)
Definition cityturn.c:4620
void send_city_turn_notifications(struct connection *pconn)
Definition cityturn.c:576
int city_incite_cost(struct player *pplayer, struct city *pcity)
Definition cityturn.c:3455
bool city_reduce_size(struct city *pcity, citizens pop_loss, struct player *destroyer, const char *reason)
Definition cityturn.c:762
bool city_refresh(struct city *pcity)
Definition cityturn.c:158
void apply_cmresult_to_city(struct city *pcity, const struct cm_result *cmr)
Definition cityturn.c:281
void update_city_activities(struct player *pplayer) fc__attribute((nonnull(1)))
Definition cityturn.c:602
bool player_balance_treasury_units(struct player *pplayer)
Definition cityturn.c:3283
void city_style_refresh(struct city *pcity)
Definition cityturn.c:4611
void city_refresh_for_player(struct player *pplayer)
Definition cityturn.c:182
void city_tc_effect_refresh(struct player *pplayer)
Definition cityturn.c:4641
void check_disasters(void)
Definition cityturn.c:4415
void city_refresh_queue_processing(void)
Definition cityturn.c:213
int city_growth_granary_savings(const struct city *pcity)
Definition cityturn.c:878
void remove_obsolete_buildings_city(struct city *pcity, bool refresh)
Definition cityturn.c:235
char * incite_cost
Definition comments.c:76
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 int const struct action *paction struct unit struct city * pcity
Definition dialogs_g.h:78
unsigned char citizens
Definition fc_types.h:247
Definition city.h:317
Definition cm.h:52
#define fc__attribute(x)
Definition support.h:99