Freeciv21
Develop your civilization from humble roots to a global empire
aisettler.h
Go to the documentation of this file.
1 /***********************************************************************
2 _ ._ Copyright (c) 1996-2021 Freeciv21 and Freeciv contributors.
3  \ | This file is part of Freeciv21. Freeciv21 is free software: you
4  \_| can redistribute it and/or modify it under the terms of the
5  .' '. GNU General Public License as published by the Free
6  :O O: Software Foundation, either version 3 of the License,
7  '/ \' or (at your option) any later version. You should have
8  :X: received a copy of the GNU General Public License along with
9  :X: Freeciv21. If not, see https://www.gnu.org/licenses/.
10 ***********************************************************************/
11 #pragma once
12 
13 // utility
14 #include "support.h" // bool type
15 
16 // common
17 #include "ai.h"
18 #include "city.h"
19 #include "fc_types.h"
20 
21 struct ai_plr;
22 struct tile_data_cache;
23 
24 void dai_auto_settler_init(struct ai_plr *ai);
25 void dai_auto_settler_free(struct ai_plr *ai);
26 
27 void dai_auto_settler_reset(struct ai_type *ait, struct player *pplayer);
28 void dai_auto_settler_run(struct ai_type *ait, struct player *pplayer,
29  struct unit *punit, struct settlermap *state);
30 void dai_auto_settler_cont(struct ai_type *ait, struct player *pplayer,
31  struct unit *punit, struct settlermap *state);
32 
33 void contemplate_new_city(struct ai_type *ait, struct city *pcity);
void dai_auto_settler_cont(struct ai_type *ait, struct player *pplayer, struct unit *punit, struct settlermap *state)
Auto settler continuing its work.
Definition: aisettler.cpp:1113
void dai_auto_settler_run(struct ai_type *ait, struct player *pplayer, struct unit *punit, struct settlermap *state)
Auto settler that can also build cities.
Definition: aisettler.cpp:964
void dai_auto_settler_init(struct ai_plr *ai)
Initialize ai settler engine.
Definition: aisettler.cpp:945
void dai_auto_settler_free(struct ai_plr *ai)
Deinitialize ai settler engine.
Definition: aisettler.cpp:1158
void dai_auto_settler_reset(struct ai_type *ait, struct player *pplayer)
Reset ai settler engine.
Definition: aisettler.cpp:1124
void contemplate_new_city(struct ai_type *ait, struct city *pcity)
Return want for city settler.
Definition: aisettler.cpp:1228
Definition: aidata.h:63
Definition: ai.h:42
Definition: city.h:291
Definition: player.h:231
Definition: unit.h:134