Freeciv-3.1: /fast/freeciv/nightly/S3_1/server/cityturn.h Source File

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);
29void city_refresh_queue_processing(void);
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
43void send_city_turn_notifications(struct connection *pconn);
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 */
remove_obsolete_buildings
void remove_obsolete_buildings(struct player *pplayer)
Definition cityturn.c:272
city_granary_savings
int city_granary_savings(const struct city *pcity)
Definition cityturn.c:923
city_change_size
bool city_change_size(struct city *pcity, citizens new_size, struct player *nationality, const char *reason)
Definition cityturn.c:1060
choose_build_target
void choose_build_target(struct player *pplayer, struct city *pcity)
Definition cityturn.c:2230
auto_arrange_workers
void auto_arrange_workers(struct city *pcity)
Definition cityturn.c:368
city_refresh_queue_add
void city_refresh_queue_add(struct city *pcity)
Definition cityturn.c:199
nullify_prechange_production
void nullify_prechange_production(struct city *pcity)
Definition cityturn.c:3372
city_empty_food_stock
bool city_empty_food_stock(struct city *pcity)
Definition cityturn.c:4048
check_city_migrations
bool check_city_migrations(void)
Definition cityturn.c:4016
city_repair_size
void city_repair_size(struct city *pcity, int change)
Definition cityturn.c:896
send_city_turn_notifications
void send_city_turn_notifications(struct connection *pconn)
Definition cityturn.c:578
city_incite_cost
int city_incite_cost(struct player *pplayer, struct city *pcity)
Definition cityturn.c:3260
city_reduce_size
bool city_reduce_size(struct city *pcity, citizens pop_loss, struct player *destroyer, const char *reason)
Definition cityturn.c:807
city_refresh
bool city_refresh(struct city *pcity)
Definition cityturn.c:161
apply_cmresult_to_city
void apply_cmresult_to_city(struct city *pcity, const struct cm_result *cmr)
Definition cityturn.c:283
update_city_activities
void update_city_activities(struct player *pplayer) fc__attribute((nonnull(1)))
Definition cityturn.c:604
city_style_refresh
void city_style_refresh(struct city *pcity)
Definition cityturn.c:4373
city_refresh_for_player
void city_refresh_for_player(struct player *pplayer)
Definition cityturn.c:184
city_tc_effect_refresh
void city_tc_effect_refresh(struct player *pplayer)
Definition cityturn.c:4381
check_disasters
void check_disasters(void)
Definition cityturn.c:4177
city_refresh_queue_processing
void city_refresh_queue_processing(void)
Definition cityturn.c:215
remove_obsolete_buildings_city
void remove_obsolete_buildings_city(struct city *pcity, bool refresh)
Definition cityturn.c:237
fc_types.h
citizens
unsigned char citizens
Definition fc_types.h:358
city
Definition city.h:309
cm_result
Definition cm.h:52
connection
Definition connection.h:141
player
Definition player.h:249
support.h
fc__attribute
#define fc__attribute(x)
Definition support.h:89