| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Game.LambdaHack.Common.Types
Description
Abstract identifiers for the main types in the engine. This is imported by modules that don't need to know the internal structure of the types. As a side effect, this prevents mutual dependencies among modules.
Documentation
A unique identifier of an item in the dungeon.
A unique identifier of a faction in a game.
Instances
| Enum FactionId Source # | |
Defined in Game.LambdaHack.Common.Types Methods succ :: FactionId -> FactionId # pred :: FactionId -> FactionId # fromEnum :: FactionId -> Int # enumFrom :: FactionId -> [FactionId] # enumFromThen :: FactionId -> FactionId -> [FactionId] # enumFromTo :: FactionId -> FactionId -> [FactionId] # enumFromThenTo :: FactionId -> FactionId -> FactionId -> [FactionId] # | |
| Eq FactionId Source # | |
| Ord FactionId Source # | |
| Show FactionId Source # | |
| Hashable FactionId Source # | |
| Binary FactionId Source # | |
Abstract level identifiers.
Instances
| Enum LevelId Source # | |
| Eq LevelId Source # | |
| Ord LevelId Source # | |
Defined in Game.LambdaHack.Common.Types | |
| Show LevelId Source # | |
| Hashable LevelId Source # | |
| Binary LevelId Source # | |
A unique identifier of an actor in the dungeon.
Instances
| Enum ActorId Source # | |
| Eq ActorId Source # | |
| Ord ActorId Source # | |
Defined in Game.LambdaHack.Common.Types | |
| Show ActorId Source # | |
| Binary ActorId Source # | |
Item container type.
Constructors
| CFloor LevelId Point | |
| CEmbed LevelId Point | |
| CActor ActorId CStore | |
| CTrunk FactionId LevelId Point | for bootstrapping actor bodies |
Instances
| Eq Container Source # | |
| Ord Container Source # | |
| Show Container Source # | |
| Generic Container Source # | |
| Binary Container Source # | |
| type Rep Container Source # | |
Defined in Game.LambdaHack.Common.Types type Rep Container = D1 ('MetaData "Container" "Game.LambdaHack.Common.Types" "LambdaHack-0.9.5.0-7wUbMHtzAj7LBcEiCWcNel" 'False) ((C1 ('MetaCons "CFloor" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LevelId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Point)) :+: C1 ('MetaCons "CEmbed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LevelId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Point))) :+: (C1 ('MetaCons "CActor" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ActorId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CStore)) :+: C1 ('MetaCons "CTrunk" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FactionId) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LevelId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Point))))) | |
ppContainer :: Container -> Text Source #