LambdaHack-0.6.0.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Atomic.MonadStateWrite

Description

The monad for writing to the game state and related operations.

Synopsis

Documentation

updateLevel :: MonadStateWrite m => LevelId -> (Level -> Level) -> m () Source #

Update a given level data within state.

updateFloor :: (ItemFloor -> ItemFloor) -> Level -> Level Source #

Update the items on the ground map.

updateActorMap :: (ActorMap -> ActorMap) -> Level -> Level Source #

Update the actors on the ground map.

updateTile :: (TileMap -> TileMap) -> Level -> Level Source #

Update the tile map.

updateSmell :: (SmellMap -> SmellMap) -> Level -> Level Source #

Update the smell map.