LambdaHack-0.2.12: A roguelike game engine in early and active development

Safe HaskellNone

Game.LambdaHack.Client.AtomicSemCli

Description

Semantics of client UI response to atomic commands. See https://github.com/kosmikus/LambdaHack/wiki/Client-server-architecture.

Synopsis

Documentation

cmdAtomicSemCli :: MonadClient m => CmdAtomic -> m ()Source

Effect of atomic actions on client state is calculated in the global state before the command is executed.

cmdAtomicFilterCli :: MonadClient m => CmdAtomic -> m [CmdAtomic]Source

Clients keep a subset of atomic commands sent by the server and add some of their own. The result of this function is the list of commands kept for each command received.

drawCmdAtomicUI :: MonadClientUI m => Bool -> CmdAtomic -> m ()Source

Visualization of atomic actions for the client is perfomed in the global state after the command is executed and after the client state is modified by the command.