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

Safe HaskellNone

Game.LambdaHack.Common.Misc

Description

Hacks that haven't found their home yet.

Synopsis

Documentation

normalLevelBound :: (Int, Int)

Level bounds. TODO: query terminal size instead and scroll view.

maxLevelDim :: Int

Maximal supported level X and Y dimension (32768). Not checked anywhere. The value is chosen to support architectures with 32-bit ints.

divUp :: Int -> Int -> Int

Integer division, rounding up.

type Freqs = [(Text, Int)]

For each group that the kind belongs to, denoted by a Text name in the first component of a pair, the second component of a pair shows how common the kind is within the group.

breturn :: MonadPlus m => Bool -> a -> m a

breturn b a = [a | b]

data FactionId

A unique identifier of a faction in a game.

data LevelId

Abstract level identifiers.