| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Game.LambdaHack.Content.ModeKind
Description
The type of kinds of game modes.
- type Caves = IntMap (GroupName CaveKind, Maybe Bool)
- data Roster = Roster {
- rosterList :: ![Player Dice]
- rosterEnemy :: ![(Text, Text)]
- rosterAlly :: ![(Text, Text)]
- data Player a = Player {
- fname :: !Text
- fgroup :: !(GroupName ItemKind)
- fskillsOther :: !Skills
- fcanEscape :: !Bool
- fneverEmpty :: !Bool
- fhiCondPoly :: !HiCondPoly
- fhasNumbers :: !Bool
- fhasGender :: !Bool
- ftactic :: !Tactic
- fentryLevel :: !a
- finitialActors :: !a
- fleaderMode :: !LeaderMode
- fhasUI :: !Bool
- data ModeKind = ModeKind {}
- data LeaderMode
- data AutoLeader = AutoLeader {
- autoDungeon :: !Bool
- autoLevel :: !Bool
- data Outcome
- data HiIndeterminant
- type HiCondPoly = [HiSummand]
- type HiSummand = (HiPolynomial, [Outcome])
- type HiPolynomial = [(HiIndeterminant, Double)]
- validateSingleModeKind :: ModeKind -> [Text]
- validateAllModeKind :: [ModeKind] -> [Text]
Documentation
type Caves = IntMap (GroupName CaveKind, Maybe Bool) Source
Requested cave groups for particular levels. The second component
is the Escape feature on the level. True means it's represented
by <, False, by >.
The specification of players for the game mode.
Constructors
| Roster | |
Fields
| |
Properties of a particular player.
Constructors
| Player | |
Fields
| |
Game mode specification.
Constructors
| ModeKind | |
data LeaderMode Source
If a faction with LeaderUI and LeaderAI has any actor, it has a leader.
Constructors
| LeaderNull | faction can have no leader, is whole under AI control |
| LeaderAI AutoLeader | leader under AI control |
| LeaderUI AutoLeader | leader under UI control, assumes |
Instances
data AutoLeader Source
Constructors
| AutoLeader | |
Fields
| |
Instances
Outcome of a game.
data HiIndeterminant Source
type HiCondPoly = [HiSummand] Source
Conditional polynomial representing score calculation for this player.
type HiSummand = (HiPolynomial, [Outcome]) Source
type HiPolynomial = [(HiIndeterminant, Double)] Source
validateSingleModeKind :: ModeKind -> [Text] Source
Catch invalid game mode kind definitions.
validateAllModeKind :: [ModeKind] -> [Text] Source
Validate all game mode kinds. Currently always valid.