Safe Haskell | None |
---|---|
Language | Haskell2010 |
Basic types for content definitions.
Synopsis
- type X = Int
- type Y = Int
- data GroupName a
- toGroupName :: Text -> GroupName a
- fromGroupName :: GroupName a -> Text
- type Freqs a = [(GroupName a, Int)]
- type Rarity = [(Double, Int)]
- linearInterpolation :: Int -> Int -> Rarity -> Int
- data ContentId c
- toContentId :: Word16 -> ContentId c
- fromContentId :: ContentId c -> Word16
- contentIdIndex :: ContentId k -> Int
- data CStore
- ppCStore :: CStore -> (Text, Text)
- ppCStoreIn :: CStore -> Text
- verbCStore :: CStore -> Text
- data SLore
- data ItemDialogMode
- ppSLore :: SLore -> Text
- headingSLore :: SLore -> Text
- ppItemDialogMode :: ItemDialogMode -> (Text, Text)
- ppItemDialogModeIn :: ItemDialogMode -> Text
- ppItemDialogModeFrom :: ItemDialogMode -> Text
Documentation
Instances
Eq (GroupName a) Source # | |
Ord (GroupName a) Source # | |
Defined in Game.LambdaHack.Definition.Defs | |
Show (GroupName a) Source # | |
IsString (GroupName a) Source # | |
Defined in Game.LambdaHack.Definition.Defs fromString :: String -> GroupName a # | |
Generic (GroupName a) Source # | |
Binary (GroupName a) Source # | |
NFData (GroupName a) Source # | |
Defined in Game.LambdaHack.Definition.Defs | |
Hashable (GroupName a) Source # | |
Defined in Game.LambdaHack.Definition.Defs | |
type Rep (GroupName a) Source # | |
Defined in Game.LambdaHack.Definition.Defs |
toGroupName :: Text -> GroupName a Source #
fromGroupName :: GroupName a -> Text Source #
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.
Content identifiers for the content type c
.
Instances
Enum (ContentId c) Source # | |
Defined in Game.LambdaHack.Definition.Defs succ :: ContentId c -> ContentId c # pred :: ContentId c -> ContentId c # toEnum :: Int -> ContentId c # fromEnum :: ContentId c -> Int # enumFrom :: ContentId c -> [ContentId c] # enumFromThen :: ContentId c -> ContentId c -> [ContentId c] # enumFromTo :: ContentId c -> ContentId c -> [ContentId c] # enumFromThenTo :: ContentId c -> ContentId c -> ContentId c -> [ContentId c] # | |
Eq (ContentId c) Source # | |
Ord (ContentId c) Source # | |
Defined in Game.LambdaHack.Definition.Defs | |
Show (ContentId c) Source # | |
Generic (ContentId c) Source # | |
Binary (ContentId c) Source # | |
Hashable (ContentId c) Source # | |
Defined in Game.LambdaHack.Definition.Defs | |
UnboxRepClass (ContentId k) Source # | |
type Rep (ContentId c) Source # | |
Defined in Game.LambdaHack.Definition.Defs | |
type UnboxRep (ContentId k) Source # | |
Defined in Game.LambdaHack.Common.PointArray |
toContentId :: Word16 -> ContentId c Source #
fromContentId :: ContentId c -> Word16 Source #
contentIdIndex :: ContentId k -> Int Source #
Actor's item stores.
Instances
Bounded CStore Source # | |
Enum CStore Source # | |
Defined in Game.LambdaHack.Definition.Defs | |
Eq CStore Source # | |
Ord CStore Source # | |
Read CStore Source # | |
Show CStore Source # | |
Generic CStore Source # | |
Binary CStore Source # | |
NFData CStore Source # | |
Defined in Game.LambdaHack.Definition.Defs | |
type Rep CStore Source # | |
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)))) |
ppCStoreIn :: CStore -> Text Source #
verbCStore :: CStore -> Text Source #
Item slot and lore categories.
Instances
Bounded SLore Source # | |
Enum SLore Source # | |
Defined in Game.LambdaHack.Definition.Defs | |
Eq SLore Source # | |
Ord SLore Source # | |
Read SLore Source # | |
Show SLore Source # | |
Generic SLore Source # | |
Binary SLore Source # | |
NFData SLore Source # | |
Defined in Game.LambdaHack.Definition.Defs | |
type Rep SLore Source # | |
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 #
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
headingSLore :: SLore -> Text Source #
ppItemDialogMode :: ItemDialogMode -> (Text, Text) Source #