LambdaHack-0.8.1.2: A game engine library for tactical squad ASCII roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.HandleAtomicM

Contents

Description

Handle atomic commands received by the client.

Synopsis

Documentation

class MonadClient m => MonadClientSetup m where Source #

Client monad for saving and restarting games.

Minimal complete definition

saveClient, restartClient

Methods

saveClient :: m () Source #

restartClient :: m () Source #

cmdAtomicSemCli :: MonadClientSetup m => State -> UpdAtomic -> m () Source #

Effect of atomic actions on client state. It is calculated with the global state from after the command is executed (except where the supplied oldState is used).

Internal operations

createActor :: MonadClient m => ActorId -> Actor -> [(ItemId, Item)] -> m () Source #