Safe Haskell | None |
---|---|
Language | Haskell2010 |
Factions taking part in the game: e.g., two human players controlling the hero faction battling the monster and the animal factions.
- data FactionId
- type FactionDict = EnumMap FactionId Faction
- data Faction = Faction {}
- data Diplomacy
- data Status = Status {}
- data Target
- data TGoal
- data Challenge = Challenge {}
- tgtKindDescription :: Target -> Text
- isHorrorFact :: Faction -> Bool
- nameOfHorrorFact :: GroupName ItemKind
- noRunWithMulti :: Faction -> Bool
- isAIFact :: Faction -> Bool
- autoDungeonLevel :: Faction -> (Bool, Bool)
- automatePlayer :: Bool -> Player -> Player
- isAtWar :: Faction -> FactionId -> Bool
- isAllied :: Faction -> FactionId -> Bool
- difficultyBound :: Int
- difficultyDefault :: Int
- difficultyCoeff :: Int -> Int
- difficultyInverse :: Int -> Int
- defaultChallenge :: Challenge
- type Dipl = EnumMap FactionId Diplomacy
Documentation
A unique identifier of a faction in a game.
type FactionDict = EnumMap FactionId Faction Source #
All factions in the game, indexed by faction identifier.
Faction | |
|
Diplomacy states. Higher overwrite lower in case of asymmetric content.
Current game status.
The type of na actor target.
tgtKindDescription :: Target -> Text Source #
isHorrorFact :: Faction -> Bool Source #
Tell whether the faction consists of summoned horrors only.
Horror player is special, for summoned actors that don't belong to any of the main players of a given game. E.g., animals summoned during a skirmish game between two hero factions land in the horror faction. In every game, either all factions for which summoning items exist should be present or a horror player should be added to host them.
noRunWithMulti :: Faction -> Bool Source #
difficultyCoeff :: Int -> Int Source #
difficultyInverse :: Int -> Int Source #