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

Safe HaskellNone

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.

updatePrio :: (ActorPrio -> ActorPrio) -> Level -> LevelSource

Update the actor time priority queue.

updateFloor :: (ItemFloor -> ItemFloor) -> Level -> LevelSource

Update the items on the ground map.

updateTile :: (TileMap -> TileMap) -> Level -> LevelSource

Update the tile map.

updateSmell :: (SmellMap -> SmellMap) -> Level -> LevelSource

Update the smell map.