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

Safe HaskellNone

Game.LambdaHack.Frontend

Contents

Description

Display game data on the screen and receive user input using one of the available raw frontends and derived operations.

Synopsis

Re-exported part of the raw frontend

frontendName :: StringSource

The name of the frontend.

Derived operation

startupF :: String -> IO () -> IO ()Source

getConfirmGeneric :: Monad m => ([KM] -> a -> m KM) -> [KM] -> a -> m BoolSource

Augment a function that takes and returns keys.

Connection channels

data FrontReq Source

Constructors

FrontFrame

show a frame, if the fid acitve, or save it to the client's queue

Fields

frontAc :: !AcFrame
 
FrontKey

flush frames, possibly show fadeout/fadein and ask for a keypress

Fields

frontKM :: ![KM]
 
frontFr :: !SingleFrame
 
FrontSlides

show a whole slideshow without interleaving with other clients

data ConnMulti Source

Multiplex connection channels, for the case of a frontend shared among clients. This is transparent to the clients themselves.

Constructors

ConnMulti 

Fields

fromMulti :: FromMulti
 
toMulti :: ToMulti