|
Freeciv-3.4
|
#include "log.h"#include "city.h"#include "game.h"#include "map.h"#include "player.h"#include "research.h"#include "unit.h"#include "unitlist.h"#include "pf_tools.h"#include "citytools.h"#include "maphand.h"#include "srv_log.h"#include "unithand.h"#include "unittools.h"#include "advdata.h"#include "handicaps.h"#include "daicity.h"#include "daidata.h"#include "daiplayer.h"#include "daitools.h"#include "daiunit.h"#include "daiparadrop.h"Go to the source code of this file.
Macros | |
| #define | LOGLEVEL_PARATROOPER LOG_DEBUG |
Functions | |
| static struct tile * | find_best_tile_to_paradrop_to (struct ai_type *ait, struct unit *punit) |
| void | dai_manage_paratrooper (struct ai_type *ait, struct player *pplayer, struct unit *punit) |
| static int | calculate_want_for_paratrooper (struct unit *punit, struct tile *ptile_city) |
| void | dai_choose_paratrooper (struct ai_type *ait, const struct civ_map *nmap, struct player *pplayer, struct city *pcity, struct adv_choice *choice, bool allow_gold_upkeep) |
Definition at line 56 of file daiparadrop.c.
Evaluate value of the unit. Idea: one paratrooper can scare/protect all cities in their range
Definition at line 309 of file daiparadrop.c.
Referenced by dai_choose_paratrooper().
| void dai_choose_paratrooper | ( | struct ai_type * | ait, |
| const struct civ_map * | nmap, | ||
| struct player * | pplayer, | ||
| struct city * | pcity, | ||
| struct adv_choice * | choice, | ||
| bool | allow_gold_upkeep | ||
| ) |
Chooses to build a paratroopers if necessary
Definition at line 380 of file daiparadrop.c.
Referenced by military_advisor_choose_build().
This function does manage the paratrooper units of the AI.
Definition at line 196 of file daiparadrop.c.
Referenced by dai_manage_unit().
|
static |
Find best tile the paratrooper should jump to.
Definition at line 61 of file daiparadrop.c.
Referenced by dai_manage_paratrooper().