Freeciv21
Develop your civilization from humble roots to a global empire
aisupport.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 
14 int player_distance_to_player(struct player *pplayer, struct player *target);
15 int city_gold_worth(struct city *pcity);
int player_distance_to_player(struct player *pplayer, struct player *target)
Calculate average distances to other players.
Definition: aisupport.cpp:68
int city_gold_worth(struct city *pcity)
Rough calculation of the worth of pcity in gold.
Definition: aisupport.cpp:104
struct player * player_leading_spacerace()
Find who is leading the space race.
Definition: aisupport.cpp:31
Definition: city.h:291
Definition: player.h:231