Freeciv-3.1: /fast/freeciv/nightly/S3_1/ai/default/daidomestic.h File Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Functions
daidomestic.h File Reference
`#include "fc_types.h"`

Go to the source code of this file.

## Functions

struct adv_choice * | domestic_advisor_choose_build (struct ai_type *ait, struct player *pplayer, struct city *pcity)
void | dai_wonder_city_distance (struct ai_type *ait, struct player *pplayer, struct adv_data *adv)

## Function Documentation

## ◆ dai_wonder_city_distance()

void dai_wonder_city_distance | ( | struct ai_type * | ait,
|  | struct player * | pplayer,
|  | struct adv_data * | adv
| ) |  |

Calculate walking distances to wonder city from nearby cities.

Definition at line 644 of file daidomestic.c.

Referenced by cai_wonder_city_distance(), texwai_wonder_city_distance(), and twai_wonder_city_distance().

## ◆ domestic_advisor_choose_build()

struct adv_choice * domestic_advisor_choose_build | ( | struct ai_type * | ait,
|  | struct player * | pplayer,
|  | struct city * | pcity
| ) |  |

This function should fill the supplied choice structure.

If want is 0, this advisor doesn't want anything.

Definition at line 490 of file daidomestic.c.

Referenced by dai_city_choose_build().