Safe Haskell | None |
---|---|
Language | Haskell2010 |
The type of kinds of game modes.
- data ModeKind = ModeKind {}
- type Caves = IntMap (GroupName CaveKind)
- data Roster = Roster {
- rosterList :: [(Player, [(Int, Dice, GroupName ItemKind)])]
- rosterEnemy :: [(Text, Text)]
- rosterAlly :: [(Text, Text)]
- data Outcome
- type HiCondPoly = [HiSummand]
- type HiSummand = (HiPolynomial, [Outcome])
- type HiPolynomial = [(HiIndeterminant, Double)]
- data HiIndeterminant
- 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 LeaderMode
- data AutoLeader = AutoLeader {
- autoDungeon :: Bool
- autoLevel :: Bool
- validateSingleModeKind :: ModeKind -> [Text]
- validateAllModeKind :: [ModeKind] -> [Text]
- validateSingleRoster :: Caves -> Roster -> [Text]
- validateSinglePlayer :: Player -> [Text]
- hardwiredModeGroups :: [GroupName ModeKind]
Documentation
Game mode specification.
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 | |
|
Outcome of a game.
type HiCondPoly = [HiSummand] Source #
Conditional polynomial representing score calculation for this player.
type HiSummand = (HiPolynomial, [Outcome]) Source #
type HiPolynomial = [(HiIndeterminant, Double)] Source #
data HiIndeterminant Source #
Properties of a particular player.
Player | |
|
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 | |
|
validateSingleModeKind :: ModeKind -> [Text] Source #
Catch invalid game mode kind definitions.
validateAllModeKind :: [ModeKind] -> [Text] Source #
Validate game mode kinds together.
Internal operations
validateSingleRoster :: Caves -> Roster -> [Text] Source #
Checks, in particular, that there is at least one faction with fneverEmpty or the game would get stuck as soon as the dungeon is devoid of actors.
validateSinglePlayer :: Player -> [Text] Source #