LambdaHack-0.10.2.0: 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.

Instances

Instances details
Show ItemSlots Source # 
Instance details

Defined in Game.LambdaHack.Client.UI.ItemSlot

Binary ItemSlots Source # 
Instance details

Defined in Game.LambdaHack.Client.UI.ItemSlot

assignSlot :: SingleItemSlots -> SlotChar Source #

Assigns a slot to an item, e.g., for inclusion in equipment 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.