LambdaHack-0.11.0.1: A game engine library for tactical squad ASCII roguelike dungeon crawlers

Safe Haskell | None
Language | Haskell2010

Game.LambdaHack.Client.UI.FrameM

Contents

- Internal operations

Description

A set of Frame monad operations.

Synopsis

- drawOverlay :: MonadClientUI m => ColorMode -> Bool -> FontOverlayMap -> LevelId -> m PreFrame3
- promptGetKey :: MonadClientUI m => ColorMode -> FontOverlayMap -> Bool -> [KM] -> m KM
- addToMacro :: Map KM CmdTriple -> KM -> KeyMacroFrame -> KeyMacroFrame
- dropEmptyMacroFrames :: KeyMacroFrame -> [KeyMacroFrame] -> (KeyMacroFrame, [KeyMacroFrame])
- lastMacroFrame :: KeyMacroFrame -> [KeyMacroFrame] -> KeyMacroFrame
- stopPlayBack :: MonadClientUI m => m ()
- renderAnimFrames :: MonadClientUI m => LevelId -> Animation -> Maybe Bool -> m PreFrames3
- animate :: MonadClientUI m => LevelId -> Animation -> m ()
- resetPlayBack :: MonadClientUI m => m ()
- restoreLeaderFromRun :: MonadClientUI m => m ()
- basicFrameForAnimation :: MonadClientUI m => LevelId -> Maybe Bool -> m PreFrame3

# Documentation

drawOverlay :: MonadClientUI m => ColorMode -> Bool -> FontOverlayMap -> LevelId -> m PreFrame3 Source #

Draw the current level with the overlay on top.

promptGetKey :: MonadClientUI m => ColorMode -> FontOverlayMap -> Bool -> [KM] -> m KM Source #

addToMacro :: Map KM CmdTriple -> KM -> KeyMacroFrame -> KeyMacroFrame Source #

dropEmptyMacroFrames :: KeyMacroFrame -> [KeyMacroFrame] -> (KeyMacroFrame, [KeyMacroFrame]) Source #

lastMacroFrame :: KeyMacroFrame -> [KeyMacroFrame] -> KeyMacroFrame Source #

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

renderAnimFrames :: MonadClientUI m => LevelId -> Animation -> Maybe Bool -> m PreFrames3 Source #

Render animations on top of the current screen frame.

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

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

# Internal operations

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

We wipe any actions in progress, but keep the data needed to repeat the last global macros and the last command.

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

basicFrameForAnimation :: MonadClientUI m => LevelId -> Maybe Bool -> m PreFrame3 Source #