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

Swarm.TUI.Editor.Util

Description

 

Documentation

getEntitiesForList :: EntityMap -> Vector EntityFacade Source #

getEditingBounds :: WorldDescription -> (Bool, Cosmic BoundsRectangle) Source #

getEditorContentAt :: TerrainMap -> WorldOverdraw -> MultiWorld Int Entity -> Cosmic Coords -> (TerrainType, Maybe EntityPaint) Source #

getEditorTerrainAt :: TerrainMap -> WorldOverdraw -> MultiWorld Int Entity -> Cosmic Coords -> TerrainType Source #

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 

getEditedMapRectangle :: TerrainMap -> WorldOverdraw -> Maybe (Cosmic BoundsRectangle) -> MultiWorld Int Entity -> Grid CellPaintDisplay Source #