Skip to content

five-on-it / packages/ai/src/police-radio / placeName

Function: placeName() ​

placeName(level, graph, x, z, bridge?): string | undefined

Defined in: packages/ai/src/police-radio.ts:76

The name of a place, as the radio says it: the title of the district there, else the name of the road within RADIO.roadReach (with " Bridge" after it on a bridge); undefined with neither.

Parameters ​

level ​

LevelData

graph ​

RoadGraph

x ​

number

z ​

number

bridge? ​

boolean = false

Returns ​

string | undefined