Freeciv21
Develop your civilization from humble roots to a global empire
aitech.h
Go to the documentation of this file.
1 /*__ ___ ***************************************
2 / \ / \ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3 \_ \ / __/ contributors. This file is part of Freeciv21.
4  _\ \ / /__ Freeciv21 is free software: you can redistribute it
5  \___ \____/ __/ and/or modify it under the terms of the GNU General
6  \_ _/ Public License as published by the Free Software
7  | @ @ \_ Foundation, either version 3 of the License,
8  | or (at your option) any later version.
9  _/ /\ You should have received a copy of the GNU
10  /o) (o/\ \_ General Public License along with Freeciv21.
11  \_____/ / If not, see https://www.gnu.org/licenses/.
12  \____/ ********************************************************/
13 #pragma once
14 
15 // common
16 #include "fc_types.h"
17 #include "unittype.h"
18 
19 void dai_manage_tech(struct ai_type *ait, struct player *pplayer);
20 void dai_clear_tech_wants(struct ai_type *ait, struct player *pplayer);
21 struct unit_type *dai_wants_role_unit(struct ai_type *ait,
22  struct player *pplayer,
23  struct city *pcity, int role,
24  int want);
25 struct unit_type *dai_wants_defender_against(struct ai_type *ait,
26  struct player *pplayer,
27  struct city *pcity,
28  const struct unit_type *att,
29  int want);
struct unit_type * dai_wants_role_unit(struct ai_type *ait, struct player *pplayer, struct city *pcity, int role, int want)
Returns the best unit we can build, or nullptr if none.
Definition: aitech.cpp:518
struct unit_type * dai_wants_defender_against(struct ai_type *ait, struct player *pplayer, struct city *pcity, const struct unit_type *att, int want)
Returns the best defense multiplier unit we can build, or nullptr if none.
Definition: aitech.cpp:397
void dai_clear_tech_wants(struct ai_type *ait, struct player *pplayer)
Zero player tech wants.
Definition: aitech.cpp:604
void dai_manage_tech(struct ai_type *ait, struct player *pplayer)
Key AI research function.
Definition: aitech.cpp:335
Definition: ai.h:42
Definition: city.h:291
Definition: player.h:231