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

Safe HaskellNone

Game.LambdaHack.Client

Description

Synopsis

Documentation

exeFrontend :: (MonadAtomic m, MonadClientAbort m, MonadClientUI m, MonadClientReadServer CmdClientUI m, MonadClientWriteServer CmdSer m, MonadAtomic n, MonadClientReadServer CmdClientAI n, MonadClientWriteServer CmdSerTakeTime n) => (m () -> SessionUI -> State -> StateClient -> ChanServer CmdClientUI CmdSer -> IO ()) -> (n () -> SessionUI -> State -> StateClient -> ChanServer CmdClientAI CmdSerTakeTime -> IO ()) -> COps -> DebugModeCli -> ((FactionId -> ChanFrontend -> ChanServer CmdClientUI CmdSer -> IO ()) -> (FactionId -> ChanServer CmdClientAI CmdSerTakeTime -> IO ()) -> IO ()) -> IO ()

Wire together game content, the main loop of game clients, the main game loop assigned to this frontend (possibly containing the server loop, if the whole game runs in one process), UI config and the definitions of game commands.

class MonadActionRO m => MonadClient m

Instances

(Monoid a, MonadClient m) => MonadClient (WriterT a m) 
MonadClient (ActionCli c d) 

class MonadClient m => MonadClientUI m

Instances

(Monoid a, MonadClientUI m) => MonadClientUI (WriterT a m) 
MonadClientUI (ActionCli c d) 

class MonadClient m => MonadClientReadServer c m | m -> c

Instances

class MonadClient m => MonadClientWriteServer d m | m -> d