Safe Haskell | None |
---|---|
Language | Haskell2010 |
The type of kinds of game modes.
- type Caves = IntMap (GroupName CaveKind)
- data Roster = Roster {
- rosterList :: [(Player, [(Int, Dice, GroupName ItemKind)])]
- rosterEnemy :: [(Text, Text)]
- rosterAlly :: [(Text, Text)]
- data Player = Player {
- fname :: Text
- fgroups :: [GroupName ItemKind]
- fskillsOther :: Skills
- fcanEscape :: Bool
- fneverEmpty :: Bool
- fhiCondPoly :: HiCondPoly
- fhasGender :: Bool
- ftactic :: Tactic
- 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) 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.
Roster | |
|
Properties of a particular player.
Player | |
|
Game mode specification.
data LeaderMode Source #
If a faction with LeaderUI
and LeaderAI
has any actor, it has a leader.
LeaderNull | faction can have no leader, is whole under AI control |
LeaderAI AutoLeader | leader under AI control |
LeaderUI AutoLeader | leader under UI control, assumes |
data AutoLeader Source #
AutoLeader | |
|
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 game mode kinds together.