LambdaHack-0.10.3.0: A game engine library for tactical squad ASCII roguelike dungeon crawlers
Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.MonadClient

Description

Basic client monad and related operations.

Synopsis

Basic client monads

class MonadStateRead m => MonadClientRead m where Source #

Monad for reading client state.

Methods

getsClient :: (StateClient -> a) -> m a Source #

liftIO :: IO a -> m a Source #

class MonadClientRead m => MonadClient m where Source #

Monad for writing to client state.

Assorted primitives

rndToAction :: MonadClient m => Rnd a -> m a Source #

Invoke pseudo-random computation with the generator kept in the state.