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

Safe HaskellNone

Game.LambdaHack.Content.TileKind

Description

The type of kinds of terrain tiles.

Synopsis

Documentation

data TileKind Source

The type of kinds of terrain tiles. See Tile.hs for explanation of the absence of a corresponding type Tile that would hold particular concrete tiles in the dungeon.

Constructors

TileKind 

Fields

tsymbol :: !Char

map symbol

tname :: !Text

short description

tfreq :: !Freqs

frequency within groups

tcolor :: !Color

map color

tcolor2 :: !Color

map color when not in FOV

tfeature :: ![Feature]

properties

Instances

tvalidate :: [TileKind] -> [TileKind]Source

Filter a list of kinds, passing through only the incorrect ones, if any.

If tiles look the same on the map, the description should be the same, too. Otherwise, the player has to inspect manually all the tiles of that kind to see if any is special. This is a part of a stronger but less precise property that tiles that look the same can't be distinguished by player actions (but may behave differently wrt dungeon generation, AI preferences, etc.).