| License | BSD-3-Clause |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Swarm.Game.World.Modify
Description
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
Constructors
| NoChange (Maybe e) | |
| Modified (CellModification e) |
getModification :: CellUpdate e -> Maybe (CellModification e) Source #
data CellModification e Source #