| 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 # | |
| Binary FactionId Source # | |
| Hashable FactionId Source # | |
Defined in Game.LambdaHack.Common.Types | |
Abstract level identifiers.
Instances
| Enum 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 # | |
| 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 #