| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Game.LambdaHack.Content.ModeKind
Description
The type of kinds of game modes.
- type Caves = IM.IntMap (GroupName CaveKind, Maybe Bool)
- data Roster = Roster {
- rosterList :: ![Player Dice]
- rosterEnemy :: ![(T.Text, T.Text)]
- rosterAlly :: ![(T.Text, T.Text)]
- data Player a = Player {
- fname :: !T.Text
- fgroup :: !(GroupName ItemKind)
- fskillsOther :: !Skills
- fcanEscape :: !Bool
- fneverEmpty :: !Bool
- 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
- validateSingleModeKind :: ModeKind -> [T.Text]
- validateAllModeKind :: [ModeKind] -> [T.Text]
Documentation
type Caves = IM.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
validateSingleModeKind :: ModeKind -> [T.Text] Source
Catch invalid game mode kind definitions.
validateAllModeKind :: [ModeKind] -> [T.Text] Source
Validate all game mode kinds. Currently always valid.