swarm-0.7.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellNone
LanguageHaskell2010

Swarm.Game.Scenario.Topography.Cell

Description

 
Synopsis

Documentation

data PCell e Source #

A single cell in a world map, which contains a terrain value, and optionally an entity and robot. It is parameterized on the Entity type to facilitate less stateful versions of the Entity type in rendering scenario data.

Constructors

Cell 

Instances

Instances details
ToJSON Cell Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Cell

ToJSON CellPaintDisplay Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Cell

Show e => Show (PCell e) Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Cell

Methods

showsPrec :: Int -> PCell e -> ShowS #

show :: PCell e -> String #

showList :: [PCell e] -> ShowS #

Eq e => Eq (PCell e) Source # 
Instance details

Defined in Swarm.Game.Scenario.Topography.Cell

Methods

(==) :: PCell e -> PCell e -> Bool #

(/=) :: PCell e -> PCell e -> Bool #

FromJSONE (TerrainEntityMaps, RobotMap) Cell Source #

Parse a tuple such as [grass, rock, base] into a Cell. The entity and robot, if present, are immediately looked up and converted into Entity and TRobot values. If they are not found, a parse error results.

Instance details

Defined in Swarm.Game.Scenario.Topography.Cell

type Cell = PCell Entity Source #

A single cell in a world map, which contains a terrain value, and optionally an entity and robot.

type AugmentedCell e = SignpostableCell (PCell e) Source #

Supplements a cell with waypoint information

type CellPaintDisplay = PCell EntityFacade Source #

Stateless cells used for the World Editor. These cells contain the bare minimum display information for rendering.