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

Swarm.Game.Step.Util.Inspect

Description

Utilities for querying robots and their neighbors

Synopsis

World queries

getNeighborLocs :: Cosmic Location -> [Cosmic Location] Source #

robotWithID :: Has (State GameState) sig m => RID -> m (Maybe Robot) Source #

Get the robot with a given ID.

robotWithName :: Has (State GameState) sig m => Text -> m (Maybe Robot) Source #

Get the robot with a given name.