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.
Instances
Enum ItemId Source # | |
Defined in Game.LambdaHack.Common.Types Methods succ :: ItemId -> ItemId Source # pred :: ItemId -> ItemId Source # toEnum :: Int -> ItemId Source # fromEnum :: ItemId -> Int Source # enumFrom :: ItemId -> [ItemId] Source # enumFromThen :: ItemId -> ItemId -> [ItemId] Source # enumFromTo :: ItemId -> ItemId -> [ItemId] Source # enumFromThenTo :: ItemId -> ItemId -> ItemId -> [ItemId] Source # | |
Eq ItemId Source # | |
Ord ItemId Source # | |
Show ItemId Source # | |
Binary ItemId Source # | |
A unique identifier of a faction in a game.
Instances
Enum FactionId Source # | |
Defined in Game.LambdaHack.Common.Types Methods succ :: FactionId -> FactionId Source # pred :: FactionId -> FactionId Source # toEnum :: Int -> FactionId Source # fromEnum :: FactionId -> Int Source # enumFrom :: FactionId -> [FactionId] Source # enumFromThen :: FactionId -> FactionId -> [FactionId] Source # enumFromTo :: FactionId -> FactionId -> [FactionId] Source # enumFromThenTo :: FactionId -> FactionId -> FactionId -> [FactionId] Source # | |
Eq FactionId Source # | |
Ord FactionId Source # | |
Defined in Game.LambdaHack.Common.Types | |
Show FactionId Source # | |
Binary FactionId Source # | |
Hashable FactionId Source # | |
Defined in Game.LambdaHack.Common.Types |
Abstract level identifiers.
Instances
Enum LevelId Source # | |
Defined in Game.LambdaHack.Common.Types Methods succ :: LevelId -> LevelId Source # pred :: LevelId -> LevelId Source # toEnum :: Int -> LevelId Source # fromEnum :: LevelId -> Int Source # enumFrom :: LevelId -> [LevelId] Source # enumFromThen :: LevelId -> LevelId -> [LevelId] Source # enumFromTo :: LevelId -> LevelId -> [LevelId] Source # enumFromThenTo :: LevelId -> LevelId -> LevelId -> [LevelId] Source # | |
Eq LevelId Source # | |
Ord LevelId Source # | |
Defined in Game.LambdaHack.Common.Types | |
Show LevelId Source # | |
Binary LevelId Source # | |
Hashable LevelId Source # | |
Defined in Game.LambdaHack.Common.Types |
A unique identifier of an actor in the dungeon.
Instances
Enum ActorId Source # | |
Defined in Game.LambdaHack.Common.Types Methods succ :: ActorId -> ActorId Source # pred :: ActorId -> ActorId Source # toEnum :: Int -> ActorId Source # fromEnum :: ActorId -> Int Source # enumFrom :: ActorId -> [ActorId] Source # enumFromThen :: ActorId -> ActorId -> [ActorId] Source # enumFromTo :: ActorId -> ActorId -> [ActorId] Source # enumFromThenTo :: ActorId -> ActorId -> ActorId -> [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
ppContainer :: Container -> Text Source #