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 Outcome
- data Status = Status {}
- isHeroFact :: Faction -> Bool
- isCivilianFact :: COps -> Faction -> Bool
- isHorrorFact :: COps -> Faction -> Bool
- isSpawnFact :: Faction -> Bool
- isSummonFact :: COps -> Faction -> Bool
- isAllMoveFact :: COps -> Faction -> Bool
- keepArenaFact :: Faction -> Bool
- isAtWar :: Faction -> FactionId -> Bool
- isAllied :: Faction -> FactionId -> Bool
- difficultyBound :: Int
- difficultyDefault :: Int
- difficultyCoeff :: Int -> Int
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 assymetric content.
Outcome of a game.
Current game status.
isHeroFact :: Faction -> Bool Source
Tell whether the faction consists of heroes.
isCivilianFact :: COps -> Faction -> Bool Source
Tell whether the faction consists of human civilians.
isHorrorFact :: COps -> Faction -> Bool Source
Tell whether the faction consists of summoned horrors only.
isSpawnFact :: Faction -> Bool Source
Tell whether the faction is considered permanent dungeon dwellers (normally these are just spawning factions, but there are exceptions).
isSummonFact :: COps -> Faction -> Bool Source
Tell whether actors of the faction can be summoned by items, etc.
isAllMoveFact :: COps -> Faction -> Bool Source
Tell whether all moving actors of the factions can move at once.
keepArenaFact :: Faction -> Bool Source
Tell whether a faction that we know is still in game, keeps arena. Such factions win if they can escape the dungeon. Keeping arena means, if the faction is still in game, it always has a leader in the dungeon somewhere. So, leaderless factions and spawner factions do not keep an arena, even though the latter usually has a leader for most of the game.
difficultyCoeff :: Int -> Int Source