Freeciv21
Develop your civilization from humble roots to a global empire
advbuilding.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  __ __ part of Freeciv21. Freeciv21 is free software: you can
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
13 /* server/advisors */
14 #include "advchoice.h"
15 
16 #define FOOD_WEIGHTING 30
17 #define SHIELD_WEIGHTING 17
18 #define TRADE_WEIGHTING 18
19 /* The Trade Weighting has to about as large as the Shield Weighting,
20  otherwise the AI will build Barracks to create veterans in cities
21  with only 1 shields production.
22  8 is too low
23  18 is too high
24  */
25 #define POLLUTION_WEIGHTING 20 // tentative
26 #define INFRA_WEIGHTING (TRADE_WEIGHTING * 0.75)
27 #define WARMING_FACTOR 50
28 #define COOLING_FACTOR WARMING_FACTOR
29 
30 struct player;
31 
32 void building_advisor(struct player *pplayer);
33 
34 void advisor_choose_build(struct player *pplayer, struct city *pcity);
35 void building_advisor_choose(struct city *pcity, struct adv_choice *choice);
void building_advisor(struct player *pplayer)
Prime pcity->server.adv.building_want[].
void building_advisor_choose(struct city *pcity, struct adv_choice *choice)
Choose improvement we like most and put it into adv_choice.
void advisor_choose_build(struct player *pplayer, struct city *pcity)
Setup improvement building.
Definition: city.h:291
Definition: player.h:231