Skip to content

five-on-it / packages/ai/src/police-lockdown / sealSpots

Function: sealSpots() ​

sealSpots(ai, ring, me): SealSpot[]

Defined in: packages/ai/src/police-lockdown.ts:297

Where to seal a ring (see the module documentation), best first: the creators' roadblock spots in reach, the bridges out of the player's district (any bridge in reach on a level without districts), then where the roads cross the ring, a bridge or a tunnel before a road.

Parameters ​

ai ​

AiWorld

ring ​

Perimeter

me ​

x ​

number

z ​

number

Returns ​

SealSpot[]