Safe Haskell | None |
---|
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 Outcome
- data Status = Status {}
- data Target
- isHorrorFact :: Faction -> Bool
- canMoveFact :: Faction -> Bool -> Bool
- 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
- type Dipl = EnumMap FactionId Diplomacy
Documentation
A unique identifier of a faction in a game.
type FactionDict = EnumMap FactionId FactionSource
All factions in the game, indexed by faction identifier.
Faction | |
|
Diplomacy states. Higher overwrite lower in case of assymetric content.
Outcome of a game.
Current game status.
The type of na actor target.
isHorrorFact :: Faction -> BoolSource
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 duel game between two hero players 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.
Actors that can be summoned should have horror in their ifreq
set.
canMoveFact :: Faction -> Bool -> BoolSource
noRunWithMulti :: Faction -> BoolSource
autoDungeonLevel :: Faction -> (Bool, Bool)Source
automatePlayer :: Bool -> Player -> PlayerSource
difficultyCoeff :: Int -> IntSource