LambdaHack-0.9.4.1: A game engine library for tactical squad ASCII roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.ItemSlot

Description

Item slots for UI and AI item collections.

Synopsis

Documentation

data SlotChar Source #

Slot label. Usually just a character. Sometimes with a numerical prefix.

Constructors

SlotChar 

Fields

newtype ItemSlots Source #

A collection of mappings from slot labels to item identifiers.

assignSlot :: SingleItemSlots -> SlotChar Source #

Assigns a slot to an item, e.g., for inclusion in the inventory of a hero. At first, e.g., when item is spotted on the floor, the slot is not user-friendly. After any player's item manipulation action, slots are sorted and a fully human-readable slot is then assigned. Only then the slot can be viewed by the player.