LambdaHack-0.9.5.0: A game engine library for tactical squad ASCII roguelike dungeon crawlers
Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Definition.Defs

Description

Basic types for content definitions.

Synopsis

Documentation

type X = Int Source #

X spacial dimension for points and vectors.

type Y = Int Source #

Y xpacial dimension for points and vectors.

data GroupName a Source #

Instances

Instances details
Eq (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Ord (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Show (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

IsString (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Generic (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Associated Types

type Rep (GroupName a) :: Type -> Type Source #

Methods

from :: GroupName a -> Rep (GroupName a) x Source #

to :: Rep (GroupName a) x -> GroupName a Source #

Binary (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

NFData (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

rnf :: GroupName a -> () Source #

Hashable (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

type Rep (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

type Rep (GroupName a) = D1 ('MetaData "GroupName" "Game.LambdaHack.Definition.Defs" "LambdaHack-0.9.5.0-FWRdmmndH5GD6eZFvncKh2" 'True) (C1 ('MetaCons "GroupName" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

type Freqs a = [(GroupName a, Int)] Source #

For each group that the kind belongs to, denoted by a GroupName in the first component of a pair, the second component of a pair shows how common the kind is within the group.

type Rarity = [(Double, Int)] Source #

Rarity on given depths.

data ContentId c Source #

Content identifiers for the content type c.

Instances

Instances details
Enum (ContentId c) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Eq (ContentId c) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Ord (ContentId c) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Show (ContentId c) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Generic (ContentId c) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Associated Types

type Rep (ContentId c) :: Type -> Type Source #

Methods

from :: ContentId c -> Rep (ContentId c) x Source #

to :: Rep (ContentId c) x -> ContentId c Source #

Binary (ContentId c) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Hashable (ContentId c) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

UnboxRepClass (ContentId k) Source # 
Instance details

Defined in Game.LambdaHack.Common.PointArray

Associated Types

type UnboxRep (ContentId k) Source #

type Rep (ContentId c) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

type Rep (ContentId c) = D1 ('MetaData "ContentId" "Game.LambdaHack.Definition.Defs" "LambdaHack-0.9.5.0-FWRdmmndH5GD6eZFvncKh2" 'True) (C1 ('MetaCons "ContentId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))
type UnboxRep (ContentId k) Source # 
Instance details

Defined in Game.LambdaHack.Common.PointArray

data CStore Source #

Actor's item stores.

Constructors

CGround 
COrgan 
CEqp 
CInv 
CSha 

Instances

Instances details
Bounded CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Enum CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Eq CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Ord CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Read CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Show CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Generic CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Associated Types

type Rep CStore :: Type -> Type Source #

Binary CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

NFData CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

rnf :: CStore -> () Source #

type Rep CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

type Rep CStore = D1 ('MetaData "CStore" "Game.LambdaHack.Definition.Defs" "LambdaHack-0.9.5.0-FWRdmmndH5GD6eZFvncKh2" 'False) ((C1 ('MetaCons "CGround" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "COrgan" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CEqp" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CInv" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CSha" 'PrefixI 'False) (U1 :: Type -> Type))))

data SLore Source #

Item slot and lore categories.

Instances

Instances details
Bounded SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Enum SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Eq SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

(==) :: SLore -> SLore -> Bool Source #

(/=) :: SLore -> SLore -> Bool Source #

Ord SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Read SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Show SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Generic SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Associated Types

type Rep SLore :: Type -> Type Source #

Methods

from :: SLore -> Rep SLore x Source #

to :: Rep SLore x -> SLore Source #

Binary SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

NFData SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

rnf :: SLore -> () Source #

type Rep SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

type Rep SLore = D1 ('MetaData "SLore" "Game.LambdaHack.Definition.Defs" "LambdaHack-0.9.5.0-FWRdmmndH5GD6eZFvncKh2" 'False) ((C1 ('MetaCons "SItem" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SOrgan" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "STrunk" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "SCondition" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SBlast" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SEmbed" 'PrefixI 'False) (U1 :: Type -> Type))))

data ItemDialogMode Source #

Constructors

MStore CStore

a leader's store

MOrgans

leader's organs

MOwned

all party's items

MSkills

not items, but determined by leader's items

MLore SLore

not party's items, but all known generalized items

MPlaces

not items at all, but definitely a lore

Instances

Instances details
Eq ItemDialogMode Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Ord ItemDialogMode Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Read ItemDialogMode Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Show ItemDialogMode Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Generic ItemDialogMode Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Associated Types

type Rep ItemDialogMode :: Type -> Type Source #

Binary ItemDialogMode Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

NFData ItemDialogMode Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

rnf :: ItemDialogMode -> () Source #

type Rep ItemDialogMode Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

type Rep ItemDialogMode = D1 ('MetaData "ItemDialogMode" "Game.LambdaHack.Definition.Defs" "LambdaHack-0.9.5.0-FWRdmmndH5GD6eZFvncKh2" 'False) ((C1 ('MetaCons "MStore" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CStore)) :+: (C1 ('MetaCons "MOrgans" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MOwned" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "MSkills" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MLore" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SLore)) :+: C1 ('MetaCons "MPlaces" 'PrefixI 'False) (U1 :: Type -> Type))))