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

Safe HaskellNone

Game.LambdaHack.Display

Contents

Description

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

Synopsis

Re-exported frontend

data FrontendSession Source

Session data maintained by the frontend.

startup :: String -> (FrontendSession -> IO ()) -> IO ()Source

Starts the main program loop using the frontend input and output.

shutdown :: FrontendSession -> IO ()Source

Shuts down the frontend cleanly.

frontendName :: StringSource

The name of the frontend.

nextEvent :: FrontendSession -> IO KeySource

Input key via the frontend.

Derived operations

data ColorMode Source

Color mode for the display.

Constructors

ColorFull

normal, with full colours

ColorBW

black+white only

displayLevel :: ColorMode -> FrontendSession -> COps -> Perception -> State -> Msg -> Maybe String -> IO BoolSource

Display the whole screen: level map, messages and status area and multi-page overlaid information, if any.

getConfirmD :: FrontendSession -> IO BoolSource

Waits for a SPACE or ESC.