tcod-haskell-0.1.0.0: Bindings to libtcod roguelike engine

Safe HaskellNone
LanguageHaskell2010

Game.TCOD.Context

Contents

Description

Where we define C-side types to handle in inline-c

Synopsis

Documentation

tcodContext :: Context Source #

Types

data Color Source #

24 bit color

Constructors

Color 

Fields

Instances

Eq Color Source # 

Methods

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

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

Ord Color Source # 

Methods

compare :: Color -> Color -> Ordering #

(<) :: Color -> Color -> Bool #

(<=) :: Color -> Color -> Bool #

(>) :: Color -> Color -> Bool #

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

max :: Color -> Color -> Color #

min :: Color -> Color -> Color #

Show Color Source # 

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

Generic Color Source # 

Associated Types

type Rep Color :: * -> * #

Methods

from :: Color -> Rep Color x #

to :: Rep Color x -> Color #

type Rep Color Source # 
type Rep Color = D1 (MetaData "Color" "Game.TCOD.Context" "tcod-haskell-0.1.0.0-9JdFGODCf32GFoGmrQ4wdi" False) (C1 (MetaCons "Color" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "colorR") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Word8)) ((:*:) (S1 (MetaSel (Just Symbol "colorG") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Word8)) (S1 (MetaSel (Just Symbol "colorB") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Word8)))))

newtype TCODHeightMap Source #

TCOD heighmap object is represented via 2-dimensional array

Constructors

TCODHeightMap 

Fields

data Dice Source #

Dice roll

Constructors

Dice 

Instances

Eq Dice Source # 

Methods

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

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

Show Dice Source # 

Methods

showsPrec :: Int -> Dice -> ShowS #

show :: Dice -> String #

showList :: [Dice] -> ShowS #

Generic Dice Source # 

Associated Types

type Rep Dice :: * -> * #

Methods

from :: Dice -> Rep Dice x #

to :: Rep Dice x -> Dice #

type Rep Dice Source # 
type Rep Dice = D1 (MetaData "Dice" "Game.TCOD.Context" "tcod-haskell-0.1.0.0-9JdFGODCf32GFoGmrQ4wdi" False) (C1 (MetaCons "Dice" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "diceNbRolls") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "diceNbFaces") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Int))) ((:*:) (S1 (MetaSel (Just Symbol "diceMultiplier") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double)) (S1 (MetaSel (Just Symbol "diceAddSub") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double)))))

data TCODMouse Source #

Mouse event data

Constructors

TCODMouse 

Fields

Instances

Eq TCODMouse Source # 
Show TCODMouse Source # 
Generic TCODMouse Source # 

Associated Types

type Rep TCODMouse :: * -> * #

type Rep TCODMouse Source # 
type Rep TCODMouse = D1 (MetaData "TCODMouse" "Game.TCOD.Context" "tcod-haskell-0.1.0.0-9JdFGODCf32GFoGmrQ4wdi" False) (C1 (MetaCons "TCODMouse" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "mouseX") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "mouseY") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))) ((:*:) (S1 (MetaSel (Just Symbol "mouseDx") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "mouseDy") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "mouseCx") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "mouseCy") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))) ((:*:) (S1 (MetaSel (Just Symbol "mouseDcx") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "mouseDcy") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "mouseLButton") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "mouseRButton") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) ((:*:) (S1 (MetaSel (Just Symbol "mouseMButton") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "mouseLButtonPressed") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "mouseRButtonPressed") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "mouseMButtonPressed") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) ((:*:) (S1 (MetaSel (Just Symbol "mouseWheelUp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "mouseWheelDown") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))))))

Reexports

context :: Context -> DecsQ #

funCtx :: Context #