License | BSD-3-Clause |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Swarm.Game.Scenario.Topography.Structure.Recognition
Description
Public interface for structure recognizer.
Note that we only support "recognition" of structures defined at the scenario-global level.
Synopsis
- data RecognitionState b a = RecognitionState {
- _foundStructures :: FoundRegistry b a
- _recognitionLog :: [SearchLog a]
- foundStructures :: forall b1 a b2 f. Functor f => (FoundRegistry b1 a -> f (FoundRegistry b2 a)) -> RecognitionState b1 a -> f (RecognitionState b2 a)
- recognitionLog :: forall b a f. Functor f => ([SearchLog a] -> f [SearchLog a]) -> RecognitionState b a -> f (RecognitionState b a)
Documentation
data RecognitionState b a Source #
The type parameters, b
, and a
, correspond
to Cell
and Entity
, respectively.
Constructors
RecognitionState | |
Fields
|
Instances
foundStructures :: forall b1 a b2 f. Functor f => (FoundRegistry b1 a -> f (FoundRegistry b2 a)) -> RecognitionState b1 a -> f (RecognitionState b2 a) Source #
recognitionLog :: forall b a f. Functor f => ([SearchLog a] -> f [SearchLog a]) -> RecognitionState b a -> f (RecognitionState b a) Source #