![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "ai.h"#include "city.h"#include "game.h"#include "movement.h"#include "player.h"#include "specialist.h"#include "path_finding.h"#include "pf_tools.h"#include "citytools.h"#include "srv_log.h"#include "advdata.h"#include "infracache.h"#include "handicaps.h"#include "advbuilding.h"
Include dependency graph for advbuilding.cpp:Go to the source code of this file.
Functions | |
| static void | calculate_city_clusters (struct player *pplayer) |
| Calculate walking distance to nearest friendly cities from every city. More... | |
| static void | ba_human_wants (struct player *pplayer, struct city *wonder_city) |
| Set building wants for human player. More... | |
| void | building_advisor (struct player *pplayer) |
| Prime pcity->server.adv.building_want[]. More... | |
| void | building_advisor_choose (struct city *pcity, struct adv_choice *choice) |
| Choose improvement we like most and put it into adv_choice. More... | |
| void | advisor_choose_build (struct player *pplayer, struct city *pcity) |
| Setup improvement building. More... | |
Setup improvement building.
Definition at line 325 of file advbuilding.cpp.
Referenced by choose_build_target(), and transfer_city().
Set building wants for human player.
Definition at line 115 of file advbuilding.cpp.
Referenced by building_advisor().
| void building_advisor | ( | struct player * | pplayer | ) |
Prime pcity->server.adv.building_want[].
Definition at line 191 of file advbuilding.cpp.
Referenced by begin_phase(), dai_manage_cities(), and sg_load_sanitycheck().
| void building_advisor_choose | ( | struct city * | pcity, |
| struct adv_choice * | choice | ||
| ) |
Choose improvement we like most and put it into adv_choice.
Definition at line 286 of file advbuilding.cpp.
Referenced by advisor_choose_build(), and domestic_advisor_choose_build().
|
static |
Calculate walking distance to nearest friendly cities from every city.
The hidden assumption here is that a ACTION_HELP_WONDER unit is like any other unit that will use this data.
pcity->server.adv->downtown is set to the number of cities within 4 turns of the best help wonder unit we can currently produce.
Definition at line 48 of file advbuilding.cpp.
Referenced by building_advisor().