Safe Haskell | None |
---|---|
Language | Haskell2010 |
Screen frames.
- newtype SingleFrame = SingleFrame {}
- type Frames = [Maybe FrameForall]
- blankSingleFrame :: SingleFrame
- overlayFrame :: Overlay -> FrameForall -> FrameForall
- overlayFrameWithLines :: Bool -> [AttrLine] -> FrameForall -> FrameForall
Documentation
newtype SingleFrame Source #
An overlay that fits on the screen (or is meant to be truncated on display) and is padded to fill the whole screen and is displayed as a single game screen frame.
Note that we don't provide a list of color-highlighed positions separately, because overlays need to obscure not only map, but the highlights as well.
type Frames = [Maybe FrameForall] Source #
Sequences of screen frames, including delays.
overlayFrame :: Overlay -> FrameForall -> FrameForall Source #
Overlays either the game map only or the whole empty screen frame. We assume the lines of the overlay are not too long nor too many.
overlayFrameWithLines :: Bool -> [AttrLine] -> FrameForall -> FrameForall Source #