![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "log.h"#include "rand.h"#include "citizens.h"#include "city.h"#include "fc_types.h"#include "game.h"#include "player.h"#include "citizenshand.h"
Include dependency graph for citizenshand.cpp:Go to the source code of this file.
Macros | |
| #define | log_citizens log_debug |
| #define | log_citizens_add(_pcity, _delta, _pplayer) |
| Update the nationality according to the city size. More... | |
Functions | |
| void | citizens_update (struct city *pcity, struct player *plr) |
| void | citizens_print (const struct city *pcity) |
| Print the data about the citizens. More... | |
| static bool | citizen_convert_check (struct city *pcity) |
| Return whether citizen should be converted this turn. More... | |
| void | citizens_convert (struct city *pcity) |
| Convert one (random) foreign citizen to the nationality of the owner. More... | |
| void | citizens_convert_conquest (struct city *pcity) |
| Convert citizens to the nationality of the one conquering the city. More... | |
| #define log_citizens log_debug |
Definition at line 26 of file citizenshand.cpp.
| #define log_citizens_add | ( | _pcity, | |
| _delta, | |||
| _pplayer | |||
| ) |
Update the nationality according to the city size.
New citiens are added using the nationality of the owner. If the city size is reduced, the citizens are removed first from the foreign citizens.
Definition at line 33 of file citizenshand.cpp.
|
static |
Return whether citizen should be converted this turn.
Definition at line 168 of file citizenshand.cpp.
Referenced by citizens_convert().
| void citizens_convert | ( | struct city * | pcity | ) |
Convert one (random) foreign citizen to the nationality of the owner.
Definition at line 176 of file citizenshand.cpp.
Referenced by update_city_activities().
| void citizens_convert_conquest | ( | struct city * | pcity | ) |
Convert citizens to the nationality of the one conquering the city.
Definition at line 221 of file citizenshand.cpp.
Referenced by transfer_city().
| void citizens_print | ( | const struct city * | pcity | ) |
Print the data about the citizens.
Definition at line 139 of file citizenshand.cpp.
Referenced by citizens_update().
Definition at line 39 of file citizenshand.cpp.
Referenced by city_add_unit(), city_increase_size(), city_reduce_size(), create_city(), and sg_load_player_city_citizens().