Freeciv-3.3: /fast/freeciv/nightly/main/common/borders.c File Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Functions
borders.c File Reference
`#include "fcintl.h"`
`#include "log.h"`
`#include "game.h"`
`#include "map.h"`
`#include "tile.h"`
`#include "unit.h"`
`#include "borders.h"`

Go to the source code of this file.

## Functions

int | tile_border_source_radius_sq (struct tile *ptile)
int | tile_border_source_strength (struct tile *ptile)
int | tile_border_strength (struct tile *ptile, struct tile *source)
bool | is_border_source (struct tile *ptile)

## Function Documentation

## ◆ is_border_source()

bool is_border_source | ( | struct tile * | ptile | ) |

Is given tile source to borders.

Definition at line 116 of file borders.c.

Referenced by map_calculate_borders(), and map_claim_border().

## ◆ tile_border_source_radius_sq()

int tile_border_source_radius_sq | ( | struct tile * | ptile | ) |

Border radius sq from given border source tile.

Definition at line 33 of file borders.c.

Referenced by city_reduce_size(), map_claim_border(), and map_clear_border().

## ◆ tile_border_source_strength()

int tile_border_source_strength | ( | struct tile * | ptile | ) |

Border source strength

Definition at line 69 of file borders.c.

Referenced by tile_border_strength().

## ◆ tile_border_strength()

int tile_border_strength | ( | struct tile * | ptile,
|  | struct tile * | source
| ) |  |

Border source strength at tile

Definition at line 101 of file borders.c.

Referenced by map_claim_border().