RoRo-0.1: Lupupu Cube Stage SolverContentsIndex
Game.LupupuCube.Cube
Description
A representation of cubes.
Synopsis
data Cube = Cube {
cuType :: !CubeType
cuIsDowny :: !Bool
cuIsFixed :: !Bool
cuIsLarge :: !Bool
cuHasUpperLink :: !Bool
cuHasRightLink :: !Bool
cuHasLowerLink :: !Bool
cuHasLeftLink :: !Bool
}
data CubeType
= Coloured !Pattern
| Almighty
| Indelible
| Limpid
| Flush
data Pattern
= Pentagram
| Hexagram
| Square
| Triangle
| Diamond
| Cross
| Plus
| Circle
isAlmighty :: Cube -> Bool
isFlush :: Cube -> Bool
isFlushable :: Cube -> Bool
isLinkedSomehow :: Cube -> Bool
hasSameTypeWith :: Cube -> Cube -> Bool
ppCube :: Cube -> Char
Documentation
data Cube
A Cube represents a cube.
Constructors
Cube
cuType :: !CubeTypeThe cube type.
cuIsDowny :: !BoolDoes the cube float in midair?
cuIsFixed :: !BoolIs the cube unmovable from its first place?
cuIsLarge :: !BoolIs the cube large (2 x 2)?
cuHasUpperLink :: !BoolIs the cube link to the upper one?
cuHasRightLink :: !BoolIs the cube link to the right one?
cuHasLowerLink :: !BoolIs the cube link to the lower one?
cuHasLeftLink :: !BoolIs the cube link to the left one?
show/hide Instances
Eq Cube
Ord Cube
Show Cube
XmlWrite Cube
XmlRead Cube
NFData Cube
data CubeType
The type of cube.
Constructors
Coloured !PatternColoured cube.
AlmightyAlmighty rainbow cube.
IndelibleIndelible black cube.
LimpidLimpid cube.
FlushFlush bomb cube.
show/hide Instances
Eq CubeType
Ord CubeType
Show CubeType
XmlWrite CubeType
XmlRead CubeType
NFData CubeType
data Pattern
Pattern of a coloured cube.
Constructors
Pentagram
Hexagram
Square
Triangle
Diamond
Cross
Plus
Circle
show/hide Instances
isAlmighty :: Cube -> Bool
Returns True iff the given Cube is an Almighty cube.
isFlush :: Cube -> Bool
Returns True iff the given Cube is a Flush cube.
isFlushable :: Cube -> Bool
Returns True iff the given Cube can be flushed.
isLinkedSomehow :: Cube -> Bool
Returns True iff the given Cube is somehow linked to another cube.
hasSameTypeWith :: Cube -> Cube -> Bool
Returns True iff the given two Cubes has the same type.
ppCube :: Cube -> Char
Returns a brief representation of the given Cube in an ASCII character.
Produced by Haddock version 2.1.0