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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.FrameM

Contents

Description

A set of Frame monad operations.

Synopsis

Documentation

pushFrame :: MonadClientUI m => m () Source #

Push the frame depicting the current level to the frame queue. Only one line of the report is shown, as in animations, because it may not be our turn, so we can't clear the message to see what is underneath.

animate :: MonadClientUI m => LevelId -> Animation -> m () Source #

Render and display animations on top of the current screen frame.

Internal operations

drawOverlay :: MonadClientUI m => ColorMode -> Bool -> Overlay -> LevelId -> m FrameForall Source #

Draw the current level with the overlay on top. If the overlay is too long, it's truncated. Similarly, for each line of the overlay, if it's too wide, it's truncated.

renderFrames :: MonadClientUI m => LevelId -> Animation -> m Frames Source #

Render animations on top of the current screen frame.