Safe Haskell | None |
---|---|
Language | Haskell2010 |
The type of kinds of rooms, halls and passages.
- data PlaceKind = PlaceKind {}
- data Cover
- data Fence
- validateSinglePlaceKind :: PlaceKind -> [Text]
- validateAllPlaceKind :: [PlaceKind] -> [Text]
Documentation
Parameters for the generation of small areas within a dungeon level.
PlaceKind | |
|
A method of filling the whole area (except for CVerbatim and CMirror, which are just placed in the middle of the area) by transforming a given corner.
CAlternate | reflect every other corner, overlapping 1 row and column |
CStretch | fill symmetrically 4 corners and stretch their borders |
CReflect | tile separately and symmetrically quarters of the place |
CVerbatim | just build the given interior, without filling the area |
CMirror | build the given interior in one of 4 mirrored variants |
The choice of a fence type for the place.
validateSinglePlaceKind :: PlaceKind -> [Text] Source #
Catch invalid place kind definitions. In particular, verify that the top-left corner map is rectangular and not empty.
validateAllPlaceKind :: [PlaceKind] -> [Text] Source #
Validate all place kinds. Currently always valid.