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

Swarm.Game.Scenario.Topography.Structure.Recognition.Tracking

Description

Online operations for structure recognizer.

See Swarm.Game.Scenario.Topography.Structure.Recognition.Precompute for details of the structure recognition process.

Synopsis

Documentation

entityModified :: Has (State GameState) sig m => CellModification Entity -> Cosmic Location -> m () Source #

A hook called from the centralized entity update function, updateEntityAt.

This handles structure detection upon addition of an entity, and structure de-registration upon removal of an entity. Also handles atomic entity swaps.