Freeciv21
Develop your civilization from humble roots to a global empire
daiactions.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file
3  is part of Freeciv21. Freeciv21 is free software:
4 |\_/|,,_____,~~` you can redistribute it and/or modify it under the
5 (.".)~~ )`~}} terms of the GNU General Public License as published
6  \o/\ /---~\\ ~}} by the Free Software Foundation, either version 3 of
7  _// _// ~} the License, or (at your option) any later version.
8  You should have received a copy of the GNU General
9  Public License along with Freeciv21. If not, see
10  https://www.gnu.org/licenses/.
11 **************************************************************************/
12 
13 #pragma once
14 
15 // common
16 #include "actions.h"
17 #include "fc_types.h"
18 
20  struct unit *actor_unit,
21  struct city *target_city,
22  int sub_tgt_id, int count_tech);
23 
25  struct unit *actor_unit,
26  struct city *target_city);
int dai_action_choose_sub_tgt_unit_vs_city(struct action *paction, struct unit *actor_unit, struct city *target_city)
Returns the sub target id of the sub target chosen for the specified action performed by the specifie...
Definition: daiactions.cpp:298
adv_want dai_action_value_unit_vs_city(struct action *paction, struct unit *actor_unit, struct city *target_city, int sub_tgt_id, int count_tech)
Returns the utility of having the specified unit perform the specified action to the specified city t...
Definition: daiactions.cpp:90
float adv_want
Definition: fc_types.h:1144
Definition: city.h:291
Definition: unit.h:134