|
|
|
| Description |
| Representation of a situation in a gameplay.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data Phase |
| Phase is a representation of a situation in a gameplay.
| | Constructors | | Phase | | | pSaladPos :: !Position | The position of Salad.
| | pMatrix :: !CubeMatrix | The geometry of cubes and walls.
|
|
| Instances | |
|
|
| data Position |
| Position is an unpacked pair of two integers X and Y.
| | Constructors | | Pos | | | posX :: !!Int | X
| | posY :: !!Int | Y
|
|
| Instances | |
|
|
| data Size |
| Size is an unpacked pair of two integers Width and Height.
| | Constructors | | Size | | | sWidth :: !!Int | Width
| | sHeight :: !!Int | Height
|
|
| Instances | |
|
|
| type CubeMatrix = Map Position Cube |
| CubeMatrix is a geometry of cubes and walls.
|
|
| data Direction |
| Constructors | | Instances | |
|
|
| walk :: Size -> Phase -> Direction -> Maybe Phase |
|
| jump :: Size -> Phase -> Direction -> Maybe Phase |
|
| fall :: Size -> Phase -> Maybe Phase |
|
| isCrushed :: Phase -> Bool |
|
| discreate :: Phase -> Maybe Phase |
|
| isCleared :: Phase -> Bool |
|
| isHopeless :: Phase -> Bool |
|
| ppPhase :: Size -> Phase -> String |
| Returns a brief representation of the given Phase in an ASCII
art. Size is also needed because Phase doesn't know anything
about the size of stage.
|
|
| Produced by Haddock version 2.1.0 |