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

Freeciv-3.1

Loading...
Searching...
No Matches
advbuilding.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#ifndef FC__BUILDINGADV_H
14#define FC__BUILDINGADV_H
15
16/* server/advisors */
17#include "advchoice.h"
18
19#define FOOD_WEIGHTING (adv_want)30
20#define SHIELD_WEIGHTING (adv_want)17
21#define TRADE_WEIGHTING (adv_want)18
22/* The Trade Weighting has to about as large as the Shield Weighting,
23 otherwise the AI will build Barracks to create veterans in cities
24 with only 1 shield production.
25 8 is too low
26 18 is too high
27 */
28#define POLLUTION_WEIGHTING (adv_want)20 /* Tentative */
29#define INFRA_WEIGHTING (TRADE_WEIGHTING * 0.75)
30#define WARMING_FACTOR 50
31#define COOLING_FACTOR WARMING_FACTOR
32
33struct player;
34
35void building_advisor(struct player *pplayer);
36
37void advisor_choose_build(struct player *pplayer, struct city *pcity);
38void building_advisor_choose(struct city *pcity, struct adv_choice *choice);
39
40#endif /* FC__BUILDINGADV_H */
building_advisor
void building_advisor(struct player *pplayer)
Definition advbuilding.c:180
building_advisor_choose
void building_advisor_choose(struct city *pcity, struct adv_choice *choice)
Definition advbuilding.c:278
advisor_choose_build
void advisor_choose_build(struct player *pplayer, struct city *pcity)
Definition advbuilding.c:320
advchoice.h
adv_choice
Definition advchoice.h:45
city
Definition city.h:309
player
Definition player.h:249