Freeciv21
Develop your civilization from humble roots to a global empire
borders.cpp File Reference
#include "fcintl.h"
#include "log.h"
#include "game.h"
#include "map.h"
#include "tile.h"
#include "unit.h"
#include "borders.h"
+ Include dependency graph for borders.cpp:

Go to the source code of this file.

Functions

int tile_border_source_radius_sq (struct tile *ptile)
 Border radius sq from given border source tile. More...
 
int tile_border_source_strength (struct tile *ptile)
 Border source strength. More...
 
int tile_border_strength (struct tile *ptile, struct tile *source)
 Border source strength at tile. More...
 
bool is_border_source (struct tile *ptile)
 Is given tile source to borders. More...
 

Function Documentation

◆ is_border_source()

bool is_border_source ( struct tile ptile)

Is given tile source to borders.

Definition at line 110 of file borders.cpp.

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 27 of file borders.cpp.

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 63 of file borders.cpp.

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 95 of file borders.cpp.

Referenced by map_claim_border().