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

Swarm.Game.Scenario.Topography.Placement

Description

Descriptions of the orientation and offset by which a structure should be placed.

Synopsis

Documentation

newtype StructureName Source #

Constructors

StructureName Text 

Instances

Instances details
FromJSON StructureName Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Placement

Generic StructureName Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Placement

Associated Types

type Rep StructureName :: Type -> Type #

Show StructureName Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Placement

Eq StructureName Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Placement

Ord StructureName Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Placement

type Rep StructureName Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Placement

type Rep StructureName = D1 ('MetaData "StructureName" "Swarm.Game.Scenario.Topography.Placement" "swarm-0.5.0.0-6qXEbhCmuXA4wRndqqhBu" 'True) (C1 ('MetaCons "StructureName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data Orientation Source #

Orientation transformations are applied before translation.

Constructors

Orientation 

Fields

reorientWaypoint :: Orientation -> AreaDimensions -> Location -> Location Source #

This is the point-wise equivalent of "applyOrientationTransform"

applyOrientationTransform :: Orientation -> [[a]] -> [[a]] Source #

affine transformation