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
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 #

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 #

NFData (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

rnf :: GroupName a -> () #

Hashable (GroupName a) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

hashWithSalt :: Int -> GroupName a -> Int #

hash :: GroupName a -> Int #

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-inplace" 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
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 #

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 #

Hashable (ContentId c) Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

hashWithSalt :: Int -> ContentId c -> Int #

hash :: ContentId c -> Int #

UnboxRepClass (ContentId k) Source # 
Instance details

Defined in Game.LambdaHack.Common.PointArray

Associated Types

type UnboxRep (ContentId k) :: Type 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-inplace" 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
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

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 #

Binary CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

put :: CStore -> Put #

get :: Get CStore #

putList :: [CStore] -> Put #

NFData CStore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

rnf :: CStore -> () #

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-inplace" 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
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

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 #

Binary SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

put :: SLore -> Put #

get :: Get SLore #

putList :: [SLore] -> Put #

NFData SLore Source # 
Instance details

Defined in Game.LambdaHack.Definition.Defs

Methods

rnf :: SLore -> () #

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-inplace" 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
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 #

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

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-inplace" 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))))