LambdaHack-0.4.100.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.DrawClient

Description

Display game data on the screen using one of the available frontends (determined at compile time with cabal flags).

Synopsis

Documentation

data ColorMode Source

Color mode for the display.

Constructors

ColorFull

normal, with full colours

ColorBW

black+white only

draw :: MonadClient m => Bool -> ColorMode -> LevelId -> Maybe Point -> Maybe Point -> Maybe (Array BfsDistance, Maybe [Point]) -> (T.Text, Maybe T.Text) -> (T.Text, Maybe T.Text) -> Overlay -> m SingleFrame Source

Draw the whole screen: level map and status area. Pass at most a single page if overlay of text unchanged to the frontends to display separately or overlay over map, depending on the frontend.