Freeciv-3.3: /fast/freeciv/nightly/main/server/cityturn.h Source File

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
29void city_refresh_queue_add(struct city *pcity);
30void city_refresh_queue_processing(void);
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
45void send_city_turn_notifications(struct connection *pconn);
46void update_city_activities(struct player *pplayer)
47 fc__attribute((nonnull(1)));
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
64bool player_balance_treasury_units_and_buildings(struct player *pplayer);
65bool player_balance_treasury_units(struct player *pplayer);
66
67void city_counters_refresh(struct city *pcity);
68
69#endif /* FC__CITYTURN_H */
remove_obsolete_buildings
void remove_obsolete_buildings(struct player *pplayer)
Definition cityturn.c:269
city_shrink_granary_savings
int city_shrink_granary_savings(const struct city *pcity)
Definition cityturn.c:891
city_change_size
bool city_change_size(struct city *pcity, citizens new_size, struct player *nationality, const char *reason)
Definition cityturn.c:1030
choose_build_target
void choose_build_target(struct player *pplayer, struct city *pcity)
Definition cityturn.c:2398
auto_arrange_workers
void auto_arrange_workers(struct city *pcity)
Definition cityturn.c:365
city_refresh_queue_add
void city_refresh_queue_add(struct city *pcity)
Definition cityturn.c:196
nullify_prechange_production
void nullify_prechange_production(struct city *pcity)
Definition cityturn.c:3550
city_empty_food_stock
bool city_empty_food_stock(struct city *pcity)
Definition cityturn.c:4255
check_city_migrations
bool check_city_migrations(void)
Definition cityturn.c:4223
player_balance_treasury_units_and_buildings
bool player_balance_treasury_units_and_buildings(struct player *pplayer)
Definition cityturn.c:3203
city_repair_size
void city_repair_size(struct city *pcity, int change)
Definition cityturn.c:850
city_counters_refresh
void city_counters_refresh(struct city *pcity)
Definition cityturn.c:4603
send_city_turn_notifications
void send_city_turn_notifications(struct connection *pconn)
Definition cityturn.c:575
city_incite_cost
int city_incite_cost(struct player *pplayer, struct city *pcity)
Definition cityturn.c:3438
city_reduce_size
bool city_reduce_size(struct city *pcity, citizens pop_loss, struct player *destroyer, const char *reason)
Definition cityturn.c:761
city_refresh
bool city_refresh(struct city *pcity)
Definition cityturn.c:158
apply_cmresult_to_city
void apply_cmresult_to_city(struct city *pcity, const struct cm_result *cmr)
Definition cityturn.c:280
update_city_activities
void update_city_activities(struct player *pplayer) fc__attribute((nonnull(1)))
Definition cityturn.c:601
player_balance_treasury_units
bool player_balance_treasury_units(struct player *pplayer)
Definition cityturn.c:3266
city_style_refresh
void city_style_refresh(struct city *pcity)
Definition cityturn.c:4594
city_refresh_for_player
void city_refresh_for_player(struct player *pplayer)
Definition cityturn.c:181
city_tc_effect_refresh
void city_tc_effect_refresh(struct player *pplayer)
Definition cityturn.c:4624
check_disasters
void check_disasters(void)
Definition cityturn.c:4398
city_refresh_queue_processing
void city_refresh_queue_processing(void)
Definition cityturn.c:212
city_growth_granary_savings
int city_growth_granary_savings(const struct city *pcity)
Definition cityturn.c:877
remove_obsolete_buildings_city
void remove_obsolete_buildings_city(struct city *pcity, bool refresh)
Definition cityturn.c:234
incite_cost
char * incite_cost
Definition comments.c:74
fc_types.h
citizens
unsigned char citizens
Definition fc_types.h:392
city
Definition city.h:320
cm_result
Definition cm.h:52
connection
Definition connection.h:136
player
Definition player.h:249
support.h
fc__attribute
#define fc__attribute(x)
Definition support.h:99