License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Swarm.Game.Step.Path.Walkability
Description
Walkability logic
Synopsis
Documentation
data MoveFailureMode Source #
Constructors
PathBlockedBy (Maybe Entity) | If the robot has a path Whitelist, then the absence of an entity could prevent walkability (represented by `PathBlockedBy Nothing`). |
PathLiquid Entity |
checkUnwalkable :: WalkabilityContext -> Maybe Entity -> Maybe MoveFailureMode Source #
Pure logic used inside of
checkMoveFailureUnprivileged