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.DrawM

Contents

- Internal operations

Description

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

Synopsis

- targetDesc :: MonadClientUI m => Maybe Target -> m (Maybe Text, Maybe Text)
- targetDescXhair :: MonadClientUI m => m (Maybe Text, Maybe Text, Maybe Watchfulness)
- drawHudFrame :: MonadClientUI m => ColorMode -> LevelId -> m PreFrame
- checkWarningHP :: UIOptions -> ActorId -> Int64 -> State -> Bool
- checkWarningCalm :: UIOptions -> ActorId -> Int64 -> State -> Bool
- drawFrameTerrain :: MonadClientUI m => LevelId -> m (Vector Word32)
- drawFrameContent :: MonadClientUI m => LevelId -> m FrameForall
- drawFramePath :: MonadClientUI m => LevelId -> m (FrameForall, FrameForall)
- drawFrameActor :: MonadClientUI m => LevelId -> m FrameForall
- drawFrameExtra :: MonadClientUI m => ColorMode -> LevelId -> m FrameForall
- drawFrameStatus :: MonadClientUI m => LevelId -> m AttrString
- drawArenaStatus :: COps -> Level -> Int -> AttrString
- drawLeaderStatus :: MonadClientUI m => Int -> m AttrString
- drawLeaderDamage :: MonadClientUI m => Int -> ActorId -> m AttrString
- drawSelected :: MonadClientUI m => LevelId -> Int -> EnumSet ActorId -> m (Int, AttrString)
- checkWarnings :: UIOptions -> ActorId -> State -> (Bool, Bool)

# Documentation

targetDesc :: MonadClientUI m => Maybe Target -> m (Maybe Text, Maybe Text) Source #

targetDescXhair :: MonadClientUI m => m (Maybe Text, Maybe Text, Maybe Watchfulness) Source #

drawHudFrame :: MonadClientUI m => ColorMode -> LevelId -> m PreFrame Source #

Draw the whole screen: level map and status area.

checkWarningHP :: UIOptions -> ActorId -> Int64 -> State -> Bool Source #

checkWarningCalm :: UIOptions -> ActorId -> Int64 -> State -> Bool Source #

# Internal operations

drawFrameTerrain :: MonadClientUI m => LevelId -> m (Vector Word32) Source #

drawFrameContent :: MonadClientUI m => LevelId -> m FrameForall Source #

drawFramePath :: MonadClientUI m => LevelId -> m (FrameForall, FrameForall) Source #

drawFrameActor :: MonadClientUI m => LevelId -> m FrameForall Source #

drawFrameExtra :: MonadClientUI m => ColorMode -> LevelId -> m FrameForall Source #

drawFrameStatus :: MonadClientUI m => LevelId -> m AttrString Source #

drawArenaStatus :: COps -> Level -> Int -> AttrString Source #

drawLeaderStatus :: MonadClientUI m => Int -> m AttrString Source #

drawLeaderDamage :: MonadClientUI m => Int -> ActorId -> m AttrString Source #

drawSelected :: MonadClientUI m => LevelId -> Int -> EnumSet ActorId -> m (Int, AttrString) Source #

checkWarnings :: UIOptions -> ActorId -> State -> (Bool, Bool) Source #