|
|
|
| Description |
| A representation of cubes.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data Cube |
| A Cube represents a cube.
| | Constructors | | Cube | | | cuType :: !CubeType | The cube type.
| | cuIsDowny :: !Bool | Does the cube float in midair?
| | cuIsFixed :: !Bool | Is the cube unmovable from its first place?
| | cuIsLarge :: !Bool | Is the cube large (2 x 2)?
| | cuHasUpperLink :: !Bool | Is the cube link to the upper one?
| | cuHasRightLink :: !Bool | Is the cube link to the right one?
| | cuHasLowerLink :: !Bool | Is the cube link to the lower one?
| | cuHasLeftLink :: !Bool | Is the cube link to the left one?
|
|
| Instances | |
|
|
| data CubeType |
| The type of cube.
| | Constructors | | Coloured !Pattern | Coloured cube.
| | Almighty | Almighty rainbow cube.
| | Indelible | Indelible black cube.
| | Limpid | Limpid cube.
| | Flush | Flush bomb cube.
|
| Instances | |
|
|
| data Pattern |
| Pattern of a coloured cube.
| | Constructors | | Pentagram | | | Hexagram | | | Square | | | Triangle | | | Diamond | | | Cross | | | Plus | | | Circle | |
| 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 |