Freeciv21
Develop your civilization from humble roots to a global empire
aidiplomat.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 #include "fc_types.h"
14 
15 void dai_manage_diplomat(struct ai_type *ait, struct player *pplayer,
16  struct unit *punit);
17 void dai_choose_diplomat_defensive(struct ai_type *ait,
18  struct player *pplayer,
19  struct city *pcity,
20  struct adv_choice *choice, int def);
21 void dai_choose_diplomat_offensive(struct ai_type *ait,
22  struct player *pplayer,
23  struct city *pcity,
24  struct adv_choice *choice);
void dai_choose_diplomat_defensive(struct ai_type *ait, struct player *pplayer, struct city *pcity, struct adv_choice *choice, int def)
Calculates our need for diplomats as defensive units.
Definition: aidiplomat.cpp:108
void dai_manage_diplomat(struct ai_type *ait, struct player *pplayer, struct unit *punit)
If we are the only diplomat in a threatened city, defend against enemy actions.
Definition: aidiplomat.cpp:696
void dai_choose_diplomat_offensive(struct ai_type *ait, struct player *pplayer, struct city *pcity, struct adv_choice *choice)
Calculates our need for diplomats as offensive units.
Definition: aidiplomat.cpp:155
Definition: ai.h:42
Definition: city.h:291
Definition: player.h:231
Definition: unit.h:134