Safe Haskell | None |
---|
Game.LambdaHack.Content.RuleKind
Description
The type of game rule sets and assorted game data.
Documentation
The type of game rule sets and assorted game data.
For now the rules are immutable througout the game, so there is
no type Rule
to hold any changing parameters, just RuleKind
for the fixed set.
However, in the future, if the rules can get changed during gameplay
based on data mining of player behaviour, we may add such a type
and then RuleKind
will become just a starting template, analogously
as for the other content.
The raccessible
field holds a predicate that tells
whether one location is accessible from another.
Precondition: the two locations are next to each other.
Constructors
RuleKind | |
Fields
|
ruvalidate :: [RuleKind] -> [RuleKind]Source
No specific possible problems for the content of this kind, so far, so the validation function always returns the empty list of offending kinds.