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

Safe HaskellNone

Game.LambdaHack.Common.Flavour

Contents

Description

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

Synopsis

The Flavour type

data Flavour

The type of item flavours.

Instances

Constructors

zipPlain :: [Color] -> [Flavour]

Turn a colour set into a flavour set.

zipFancy :: [Color] -> [Flavour]

Turn a colour set into a flavour set.

stdFlav :: [Flavour]

The standard full set of flavours.

Accessors

flavourToColor :: Flavour -> Color

Get the underlying base colour of a flavour.

flavourToName :: Flavour -> Text

Construct the full name of a flavour.

Assorted

colorToTeamName :: Color -> Text

Simple names for team colors (bright colours preferred).

colorToPlainName :: Color -> Text

Human-readable names, for item colors. The simple set.

colorToFancyName :: Color -> Text

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