Safe Haskell | None |
---|
Display game data on the screen using one of the available frontends (determined at compile time with cabal flags).
- data FrontendSession
- startup :: String -> (FrontendSession -> IO ()) -> IO ()
- shutdown :: FrontendSession -> IO ()
- frontendName :: String
- nextEvent :: FrontendSession -> IO Key
- data ColorMode
- displayLevel :: ColorMode -> FrontendSession -> COps -> Perception -> State -> Msg -> Maybe String -> IO Bool
- getConfirmD :: FrontendSession -> IO Bool
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.
The name of the frontend.
nextEvent :: FrontendSession -> IO KeySource
Input key via the frontend.
Derived operations
Color mode for the display.
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.