Logo FSBarV1_Archived

WallIn Module

Pure connectivity predicate that shares passability rules with Pathing. Used by BasePlan.resolvePlan and directly by bots evaluating ad-hoc placements.

Functions and values

Function or value Description

defaultWallInQuery

Full Usage: defaultWallInQuery

Returns: WallInQuery

Default query: Kbot move type, RequireMapEdgeExit = true.

Returns: WallInQuery

reachableCells grid moveType ownStructures origin

Full Usage: reachableCells grid moveType ownStructures origin

Parameters:
Returns: bool[,]

Compute the set of cells reachable from origin given the current passability overlay masked by ownStructures. Exposed so BasePlan can reuse the reachability set across multiple slot checks.

grid : MapGrid
moveType : MoveType
ownStructures : OwnStructureFootprint seq
origin : float32 * float32 * float32
Returns: bool[,]

wouldWallIn grid baseCentre ownStructures proposed query

Full Usage: wouldWallIn grid baseCentre ownStructures proposed query

Parameters:
Returns: WallInResult

Check whether adding proposed to ownStructures would disconnect baseCentre from any currently-reachable structure or map-edge exit. Pure; does not mutate any input.

grid : MapGrid
baseCentre : float32 * float32 * float32
ownStructures : OwnStructureFootprint list
proposed : OwnStructureFootprint
query : WallInQuery
Returns: WallInResult

Type something to start searching.