![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "log.h"#include "city.h"#include "game.h"#include "player.h"#include "research.h"#include "unit.h"#include "unitlist.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 "aidata.h"#include "ailog.h"#include "aiplayer.h"#include "aitools.h"#include "aiunit.h"#include "daicity.h"#include "aiparatrooper.h"
Include dependency graph for aiparatrooper.cpp: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) |
| Find best tile the paratrooper should jump to. More... | |
| void | dai_manage_paratrooper (struct ai_type *ait, struct player *pplayer, struct unit *punit) |
| This function does manage the paratrooper units of the AI. More... | |
| static int | calculate_want_for_paratrooper (struct unit *punit, struct tile *ptile_city) |
| Evaluate value of the unit. More... | |
| 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. More... | |
| #define LOGLEVEL_PARATROOPER LOG_DEBUG |
Definition at line 48 of file aiparatrooper.cpp.
Evaluate value of the unit.
Idea: one paratrooper can scare/protect all cities in his range
Definition at line 268 of file aiparatrooper.cpp.
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 339 of file aiparatrooper.cpp.
Referenced by military_advisor_choose_build().
This function does manage the paratrooper units of the AI.
Definition at line 187 of file aiparatrooper.cpp.
Referenced by dai_manage_unit().
|
static |
Find best tile the paratrooper should jump to.
Definition at line 53 of file aiparatrooper.cpp.
Referenced by dai_manage_paratrooper().