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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Atomic.MonadAtomic

Description

Atomic monads for handling atomic game state transformations.

Synopsis

Documentation

class MonadStateRead m => MonadAtomic m where Source #

The monad for executing atomic game state transformations.

Minimal complete definition

execUpdAtomic, execSfxAtomic, execSendPer

Methods

execUpdAtomic :: UpdAtomic -> m () Source #

Execute an atomic command that really changes the state.

execSfxAtomic :: SfxAtomic -> m () Source #

Execute an atomic command that only displays special effects.

execSendPer :: FactionId -> LevelId -> Perception -> Perception -> Perception -> m () Source #

Instances