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
|
|
Default query: Kbot move type,
|
Full Usage:
reachableCells grid moveType ownStructures origin
Parameters:
MapGrid
moveType : MoveType
ownStructures : OwnStructureFootprint seq
origin : float32 * float32 * float32
Returns: bool[,]
|
Compute the set of cells reachable from origin given the current
passability overlay masked by ownStructures. Exposed so
|
Full Usage:
wouldWallIn grid baseCentre ownStructures proposed query
Parameters:
MapGrid
baseCentre : float32 * float32 * float32
ownStructures : OwnStructureFootprint list
proposed : OwnStructureFootprint
query : WallInQuery
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.
|
FSBarV1_Archived