|
Freeciv-3.2
|
#include "advchoice.h"Go to the source code of this file.
Macros | |
| #define | FOOD_WEIGHTING (adv_want)30 |
| #define | SHIELD_WEIGHTING (adv_want)17 |
| #define | TRADE_WEIGHTING (adv_want)18 |
| #define | POLLUTION_WEIGHTING (adv_want)20 /* Tentative */ |
| #define | INFRA_WEIGHTING (TRADE_WEIGHTING * 0.75) |
| #define | WARMING_FACTOR 50 |
| #define | COOLING_FACTOR WARMING_FACTOR |
Functions | |
| void | building_advisor (struct player *pplayer) |
| void | advisor_choose_build (struct player *pplayer, struct city *pcity) |
| void | building_advisor_choose (struct city *pcity, struct adv_choice *choice) |
| #define COOLING_FACTOR WARMING_FACTOR |
Definition at line 31 of file advbuilding.h.
Definition at line 19 of file advbuilding.h.
| #define INFRA_WEIGHTING (TRADE_WEIGHTING * 0.75) |
Definition at line 29 of file advbuilding.h.
Definition at line 28 of file advbuilding.h.
Definition at line 20 of file advbuilding.h.
Definition at line 21 of file advbuilding.h.
| #define WARMING_FACTOR 50 |
Definition at line 30 of file advbuilding.h.
Setup improvement building
Definition at line 315 of file advbuilding.c.
Referenced by choose_build_target(), and transfer_city().
Prime pcity->server.adv.building_want[]
Definition at line 175 of file advbuilding.c.
Referenced by begin_phase(), dai_manage_cities(), sg_load_sanitycheck(), 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 273 of file advbuilding.c.
Referenced by advisor_choose_build(), and domestic_advisor_choose_build().