LambdaHack-0.6.2.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Content.RuleKind

Description

The type of game rule sets and assorted game data.

Synopsis

Documentation

data RuleKind Source #

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.

Constructors

RuleKind 

Fields

Instances

Show RuleKind Source #

A dummy instance of the Show class, to satisfy general requirments about content. We won't have many rule sets and they contain functions, so defining a proper instance is not practical.

validateSingleRuleKind :: RuleKind -> [Text] Source #

Catch invalid rule kind definitions.

validateAllRuleKind :: [RuleKind] -> [Text] Source #

Since we have only one rule kind, the set of rule kinds is always valid.