Safe Haskell | None |
---|
The type of cave layout kinds.
- data CaveKind = CaveKind {
- csymbol :: !Char
- cname :: !Text
- cfreq :: !Freqs
- cxsize :: !X
- cysize :: !Y
- cgrid :: !DiceXY
- cminPlaceSize :: !DiceXY
- cmaxPlaceSize :: !DiceXY
- cdarkChance :: !Dice
- cnightChance :: !Dice
- cauxConnects :: !Rational
- cmaxVoid :: !Rational
- cminStairDist :: !Int
- cdoorChance :: !Chance
- copenChance :: !Chance
- chidden :: !Int
- cactorCoeff :: !Int
- cactorFreq :: !Freqs
- citemNum :: !Dice
- citemFreq :: !Freqs
- cplaceFreq :: !Freqs
- cpassable :: !Bool
- cdefTile :: !GroupName
- cdarkCorTile :: !GroupName
- clitCorTile :: !GroupName
- cfillerTile :: !GroupName
- couterFenceTile :: !GroupName
- clegendDarkTile :: !GroupName
- clegendLitTile :: !GroupName
- validateSingleCaveKind :: CaveKind -> [Text]
- validateAllCaveKind :: [CaveKind] -> [Text]
Documentation
Parameters for the generation of dungeon levels.
CaveKind | |
|
validateSingleCaveKind :: CaveKind -> [Text]Source
Catch caves with not enough space for all the places. Check the size of the cave descriptions to make sure they fit on screen. Etc.
validateAllCaveKind :: [CaveKind] -> [Text]Source
Validate all cave kinds. Note that names don't have to be unique: we can have several variants of a cave with a given name.