LambdaHack-0.4.101.0: A game engine library for roguelike dungeon crawlers

Safe HaskellSafe-Inferred
LanguageHaskell2010

Game.LambdaHack.Common.Flavour

Contents

Description

The appearance of in-game items, as communicated to the player.

Synopsis

The Flavour type

data Flavour Source

The type of item flavours.

Constructors

zipPlain :: [Color] -> [Flavour] Source

Turn a colour set into a flavour set.

zipFancy :: [Color] -> [Flavour] Source

Turn a colour set into a flavour set.

stdFlav :: [Flavour] Source

The standard full set of flavours.

zipLiquid :: [Color] -> [Flavour] Source

Turn a colour set into a flavour set.

Accessors

flavourToColor :: Flavour -> Color Source

Get the underlying base colour of a flavour.

flavourToName :: Flavour -> Text Source

Construct the full name of a flavour.

Assorted

colorToTeamName :: Color -> Text Source

Simple names for team colors (bright colours preferred).

colorToPlainName :: Color -> Text Source

Human-readable names for item colors. The plain set.

colorToFancyName :: Color -> Text Source

Human-readable names for item colors. The fancy set.