LambdaHack-0.7.1.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Common.Kind

Description

General content types and operations.

Synopsis

Documentation

data Id c Source #

Content identifiers for the content type c.

Instances

Bounded (Id c) Source # 

Methods

minBound :: Id c #

maxBound :: Id c #

Enum (Id c) Source # 

Methods

succ :: Id c -> Id c #

pred :: Id c -> Id c #

toEnum :: Int -> Id c #

fromEnum :: Id c -> Int #

enumFrom :: Id c -> [Id c] #

enumFromThen :: Id c -> Id c -> [Id c] #

enumFromTo :: Id c -> Id c -> [Id c] #

enumFromThenTo :: Id c -> Id c -> Id c -> [Id c] #

Eq (Id c) Source # 

Methods

(==) :: Id c -> Id c -> Bool #

(/=) :: Id c -> Id c -> Bool #

Ord (Id c) Source # 

Methods

compare :: Id c -> Id c -> Ordering #

(<) :: Id c -> Id c -> Bool #

(<=) :: Id c -> Id c -> Bool #

(>) :: Id c -> Id c -> Bool #

(>=) :: Id c -> Id c -> Bool #

max :: Id c -> Id c -> Id c #

min :: Id c -> Id c -> Id c #

Show (Id c) Source # 

Methods

showsPrec :: Int -> Id c -> ShowS #

show :: Id c -> String #

showList :: [Id c] -> ShowS #

Binary (Id c) Source # 

Methods

put :: Id c -> Put #

get :: Get (Id c) #

putList :: [Id c] -> Put #

data Ops a Source #

Content operations for the content of type a.

Constructors

Ops 

Fields

data COps Source #

Operations for all content types, gathered together.

Instances

Eq COps Source # 

Methods

(==) :: COps -> COps -> Bool #

(/=) :: COps -> COps -> Bool #

Show COps Source # 

Methods

showsPrec :: Int -> COps -> ShowS #

show :: COps -> String #

showList :: [COps] -> ShowS #

stdRuleset :: Ops RuleKind -> RuleKind Source #

The standard ruleset used for level operations.

createOps :: forall a. Show a => ContentDef a -> Ops a Source #

Create content operations for type a from definition of content of type a.