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

Methods

(==) :: GroupName a -> GroupName a -> Bool #

(/=) :: GroupName a -> GroupName a -> Bool #

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

Methods

fromString :: String -> GroupName a

Generic (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Associated Types

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

Methods

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

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

Hashable (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 -> ()

Binary (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

put :: GroupName a -> Put

get :: Get (GroupName a)

putList :: [GroupName a] -> Put

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-4ovYxwv1jih9UUX4cyhTOG" '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

Methods

(==) :: ContentId c -> ContentId c -> Bool #

(/=) :: ContentId c -> ContentId c -> Bool #

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

Methods

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

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

Hashable (ContentId c) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Binary (ContentId c) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

put :: ContentId c -> Put

get :: Get (ContentId c)

putList :: [ContentId c] -> Put

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-4ovYxwv1jih9UUX4cyhTOG" '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

type UnboxRep (ContentId k) = Word16

toContentId :: Word16 -> ContentId c Source #

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

Methods

(==) :: CStore -> CStore -> Bool #

(/=) :: CStore -> CStore -> Bool #

Ord CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Read CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

readsPrec :: Int -> ReadS CStore #

readList :: ReadS [CStore] #

readPrec :: ReadPrec CStore #

readListPrec :: ReadPrec [CStore] #

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

Methods

from :: CStore -> Rep CStore x

to :: Rep CStore x -> CStore

NFData CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

rnf :: CStore -> ()

Binary CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

put :: CStore -> Put

get :: Get CStore

putList :: [CStore] -> Put

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-4ovYxwv1jih9UUX4cyhTOG" '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 #

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

Ord SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

compare :: SLore -> SLore -> Ordering #

(<) :: SLore -> SLore -> Bool #

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

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

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

max :: SLore -> SLore -> SLore #

min :: SLore -> SLore -> SLore #

Read SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

readsPrec :: Int -> ReadS SLore #

readList :: ReadS [SLore] #

readPrec :: ReadPrec SLore #

readListPrec :: ReadPrec [SLore] #

Show SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

showsPrec :: Int -> SLore -> ShowS #

show :: SLore -> String #

showList :: [SLore] -> ShowS #

Generic SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Associated Types

type Rep SLore :: Type -> Type

Methods

from :: SLore -> Rep SLore x

to :: Rep SLore x -> SLore

NFData SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

rnf :: SLore -> ()

Binary SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

put :: SLore -> Put

get :: Get SLore

putList :: [SLore] -> Put

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-4ovYxwv1jih9UUX4cyhTOG" '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

NFData ItemDialogMode Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

rnf :: ItemDialogMode -> ()

Binary ItemDialogMode Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

put :: ItemDialogMode -> Put

get :: Get ItemDialogMode

putList :: [ItemDialogMode] -> Put

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-4ovYxwv1jih9UUX4cyhTOG" '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))))