swarm-0.6.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

ToJSON 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.6.0.0-ERx1HMcRMba59aI2b6aNrS-swarm-topography" '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

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

This is the point-wise equivalent of "applyOrientationTransform"

applyOrientationTransform :: Orientation -> Grid a -> Grid a Source #

affine transformation

data Pose Source #

Constructors

Pose 

Instances

Instances details
Show Pose Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Placement

Methods

showsPrec :: Int -> Pose -> ShowS #

show :: Pose -> String #

showList :: [Pose] -> ShowS #

Eq Pose Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Placement

Methods

(==) :: Pose -> Pose -> Bool #

(/=) :: Pose -> Pose -> Bool #