Freeciv-3.2
|
Go to the source code of this file.
Functions | |
void | citymap_turn_init (struct player *pplayer) |
void | citymap_reserve_city_spot (struct tile *ptile, int id) |
void | citymap_free_city_spot (struct tile *ptile, int id) |
void | citymap_reserve_tile (struct tile *ptile, int id) |
int | citymap_read (struct tile *ptile) |
bool | citymap_is_reserved (struct tile *ptile) |
void | citymap_free (void) |
Free resources allocated for citymap.
Definition at line 110 of file citymap.c.
Referenced by server_game_free().
Reverse any reservations we have made in the surrounding area.
Definition at line 150 of file citymap.c.
Referenced by dai_unit_new_task().
A tile is reserved if it contains a city or unit id, or a worker is assigned to it.
Definition at line 190 of file citymap.c.
Referenced by city_desirability(), and citymap_reserve_tile().
Returns a positive value if within a city radius, which is 1 x number of cities you are within the radius of, or zero or less if not. A negative value means this tile is reserved by a city and should not be taken.
Definition at line 181 of file citymap.c.
Referenced by cityresult_fill().
This function reserves a single tile for a (possibly virtual) city with a settler's or a city's id. Then it 'crowds' tiles that this city can use to make them less attractive to other cities we may consider making.
Definition at line 122 of file citymap.c.
Referenced by dai_unit_new_task().
Reserve additional tiles as desired (eg I would reserve best available food tile in addition to adjacent tiles)
Definition at line 167 of file citymap.c.
Referenced by dai_auto_settler_run().