Freeciv-3.2
|
#include "log.h"
#include "city.h"
#include "game.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 "mapgen_utils.h"
#include "handicaps.h"
#include "aitools.h"
#include "daicity.h"
#include "daidata.h"
#include "daiplayer.h"
#include "aiparatrooper.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, struct player *pplayer, struct city *pcity, struct adv_choice *choice, bool allow_gold_upkeep) |
Definition at line 57 of file aiparatrooper.c.
Evaluate value of the unit. Idea: one paratrooper can scare/protect all cities in their range
Definition at line 310 of file aiparatrooper.c.
Referenced by dai_choose_paratrooper().
void dai_choose_paratrooper | ( | struct ai_type * | ait, |
struct player * | pplayer, | ||
struct city * | pcity, | ||
struct adv_choice * | choice, | ||
bool | allow_gold_upkeep | ||
) |
Chooses to build a paratroopers if necessary
Definition at line 381 of file aiparatrooper.c.
Referenced by military_advisor_choose_build().
This function does manage the paratrooper units of the AI.
Definition at line 197 of file aiparatrooper.c.
Referenced by dai_manage_unit().
|
static |
Find best tile the paratrooper should jump to.
Definition at line 62 of file aiparatrooper.c.
Referenced by dai_manage_paratrooper().