Freeciv-3.1
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#include "fc_types.h"
21
22struct conn_list;
23struct cm_result;
24
25bool city_refresh(struct city *pcity); /* Call if city has changed */
26void city_refresh_for_player(struct player *pplayer); /* Tax/govt changed */
27
28void city_refresh_queue_add(struct city *pcity);
30
31void auto_arrange_workers(struct city *pcity); /* Will arrange the workers */
32void apply_cmresult_to_city(struct city *pcity, const struct cm_result *cmr);
33
34bool city_change_size(struct city *pcity, citizens new_size,
35 struct player *nationality, const char *reason);
36bool city_reduce_size(struct city *pcity, citizens pop_loss,
37 struct player *destroyer, const char *reason);
38void city_repair_size(struct city *pcity, int change);
39
40bool city_empty_food_stock(struct city *pcity);
41int city_granary_savings(const struct city *pcity);
42
44void update_city_activities(struct player *pplayer)
45 fc__attribute((nonnull(1)));
46int city_incite_cost(struct player *pplayer, struct city *pcity);
47void remove_obsolete_buildings_city(struct city *pcity, bool refresh);
48void remove_obsolete_buildings(struct player *pplayer);
49
50void choose_build_target(struct player *pplayer, struct city *pcity);
51
52void nullify_prechange_production(struct city *pcity);
53
54bool check_city_migrations(void);
55
56void check_disasters(void);
57
58void city_tc_effect_refresh(struct player *pplayer);
59
60void city_style_refresh(struct city *pcity);
61
62#endif /* FC__CITYTURN_H */
void remove_obsolete_buildings(struct player *pplayer)
Definition cityturn.c:273
int city_granary_savings(const struct city *pcity)
Definition cityturn.c:924
bool city_change_size(struct city *pcity, citizens new_size, struct player *nationality, const char *reason)
Definition cityturn.c:1061
void choose_build_target(struct player *pplayer, struct city *pcity)
Definition cityturn.c:2232
void auto_arrange_workers(struct city *pcity)
Definition cityturn.c:369
void city_refresh_queue_add(struct city *pcity)
Definition cityturn.c:200
void nullify_prechange_production(struct city *pcity)
Definition cityturn.c:3379
bool city_empty_food_stock(struct city *pcity)
Definition cityturn.c:4055
bool check_city_migrations(void)
Definition cityturn.c:4023
void city_repair_size(struct city *pcity, int change)
Definition cityturn.c:897
void send_city_turn_notifications(struct connection *pconn)
Definition cityturn.c:579
int city_incite_cost(struct player *pplayer, struct city *pcity)
Definition cityturn.c:3267
bool city_reduce_size(struct city *pcity, citizens pop_loss, struct player *destroyer, const char *reason)
Definition cityturn.c:808
bool city_refresh(struct city *pcity)
Definition cityturn.c:161
void apply_cmresult_to_city(struct city *pcity, const struct cm_result *cmr)
Definition cityturn.c:284
void update_city_activities(struct player *pplayer) fc__attribute((nonnull(1)))
Definition cityturn.c:605
void city_style_refresh(struct city *pcity)
Definition cityturn.c:4380
void city_refresh_for_player(struct player *pplayer)
Definition cityturn.c:185
void city_tc_effect_refresh(struct player *pplayer)
Definition cityturn.c:4388
void check_disasters(void)
Definition cityturn.c:4184
void city_refresh_queue_processing(void)
Definition cityturn.c:216
void remove_obsolete_buildings_city(struct city *pcity, bool refresh)
Definition cityturn.c:238
unsigned char citizens
Definition fc_types.h:358
Definition city.h:309
Definition cm.h:52
#define fc__attribute(x)
Definition support.h:89