Freeciv-3.4
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,
37 Specialist_type_id sid, const char *reason);
39 struct player *destroyer, const char *reason);
40void city_repair_size(struct city *pcity, int change);
41
42bool city_empty_food_stock(struct city *pcity);
43int city_growth_granary_savings(const struct city *pcity);
44int city_shrink_granary_savings(const struct city *pcity);
45
47void update_city_activities(struct player *pplayer)
49int city_incite_cost(struct player *pplayer, struct city *pcity);
50void remove_obsolete_buildings_city(struct city *pcity, bool refresh);
51void remove_obsolete_buildings(struct player *pplayer);
52
53void choose_build_target(struct player *pplayer, struct city *pcity);
54
56
57bool check_city_migrations(void);
58
59void check_disasters(void);
60
61void city_tc_effect_refresh(struct player *pplayer);
62
63void city_style_refresh(struct city *pcity);
64
66bool player_balance_treasury_units(struct player *pplayer);
67
68void city_counters_refresh(struct city *pcity);
69
70#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
void choose_build_target(struct player *pplayer, struct city *pcity)
Definition cityturn.c:2543
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:3715
bool city_empty_food_stock(struct city *pcity)
Definition cityturn.c:4421
bool check_city_migrations(void)
Definition cityturn.c:4389
bool player_balance_treasury_units_and_buildings(struct player *pplayer)
Definition cityturn.c:3368
void city_repair_size(struct city *pcity, int change)
Definition cityturn.c:852
void city_counters_refresh(struct city *pcity)
Definition cityturn.c:4769
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:3603
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:3431
void city_style_refresh(struct city *pcity)
Definition cityturn.c:4760
void city_refresh_for_player(struct player *pplayer)
Definition cityturn.c:183
void city_tc_effect_refresh(struct player *pplayer)
Definition cityturn.c:4790
void check_disasters(void)
Definition cityturn.c:4564
bool city_change_size(struct city *pcity, citizens size, struct player *nationality, Specialist_type_id sid, const char *reason)
Definition cityturn.c:1068
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:77
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:249
int Specialist_type_id
Definition fc_types.h:236
size_t size
Definition specvec.h:72
Definition city.h:318
Definition cm.h:52
#define fc__attribute(x)
Definition support.h:99