swarm-0.5.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.TUI.Editor.Util

Description

 

Documentation

isOutsideTopLeftCorner Source #

Arguments

:: Coords

top left corner coords

-> Coords

current coords

-> Bool 

isOutsideBottomRightCorner Source #

Arguments

:: Coords

bottom right corner coords

-> Coords

current coords

-> Bool 

isOutsideRegion Source #

Arguments

:: BoundsRectangle

full bounds

-> Coords

current coords

-> Bool 

getMapRectangle :: (d -> e) -> (Coords -> (TerrainType, Maybe d)) -> BoundsRectangle -> [[PCell e]] Source #