License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Captures the various possibilities of cell
modification as a sum type for use by the structure recognizer
(see entityModified
).
Synopsis
- data CellUpdate e
- = NoChange (Maybe e)
- | Modified (CellModification e)
- getModification :: CellUpdate e -> Maybe (CellModification e)
- data CellModification e
- classifyModification :: Maybe Entity -> Maybe Entity -> CellUpdate Entity
Documentation
data CellUpdate e Source #
Compare to WorldUpdate
in Swarm.Game.World
NoChange (Maybe e) | |
Modified (CellModification e) |
getModification :: CellUpdate e -> Maybe (CellModification e) Source #
data CellModification e Source #