License | BSD-3-Clause |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Swarm.Game.Scenario.Topography.Structure.Recognition.Static
Description
Synopsis
- data RotationalSymmetry
- data SymmetryAnnotatedGrid a = SymmetryAnnotatedGrid {
- symmetry :: RotationalSymmetry
- grid :: a
- data OrientedStructure = OrientedStructure {}
- data LocatedStructure = LocatedStructure {}
Documentation
data RotationalSymmetry Source #
Constructors
NoSymmetry | Aka 1-fold symmetry |
TwoFold | Equivalent under rotation by 180 degrees |
FourFold | Equivalent under rotation by 90 degrees |
Instances
Show RotationalSymmetry Source # | |
Defined in Swarm.Game.Scenario.Topography.Structure.Recognition.Static Methods showsPrec :: Int -> RotationalSymmetry -> ShowS # show :: RotationalSymmetry -> String # showList :: [RotationalSymmetry] -> ShowS # | |
Eq RotationalSymmetry Source # | |
Defined in Swarm.Game.Scenario.Topography.Structure.Recognition.Static Methods (==) :: RotationalSymmetry -> RotationalSymmetry -> Bool # (/=) :: RotationalSymmetry -> RotationalSymmetry -> Bool # |
data SymmetryAnnotatedGrid a Source #
Constructors
SymmetryAnnotatedGrid | |
Fields
|
Instances
data OrientedStructure Source #
Constructors
OrientedStructure | |
Fields
|
Instances
data LocatedStructure Source #
For use in registering recognizable pre-placed structures.
Compare to
PositionedStructure
.
Constructors
LocatedStructure | |
Fields |
Instances
Show LocatedStructure Source # | |
Defined in Swarm.Game.Scenario.Topography.Structure.Recognition.Static Methods showsPrec :: Int -> LocatedStructure -> ShowS # show :: LocatedStructure -> String # showList :: [LocatedStructure] -> ShowS # | |
HasLocation LocatedStructure Source # | |
Defined in Swarm.Game.Scenario.Topography.Structure.Recognition.Static Methods modifyLoc :: (Location -> Location) -> LocatedStructure -> LocatedStructure Source # offsetLoc :: V2 Int32 -> LocatedStructure -> LocatedStructure Source # |