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

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

Documentation

data CellUpdate e Source #

Compare to WorldUpdate in Swarm.Game.World

Constructors

NoChange (Maybe e) 
Modified (CellModification e) 

data CellModification e Source #

Constructors

Swap e e

Fields represent what existed in the cell "before" and "after", in that order.

Remove e 
Add e