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 {}
- isHeroFact :: COps -> Faction -> Bool
- isHorrorFact :: COps -> Faction -> Bool
- isSpawnFact :: Faction -> Bool
- isSummonFact :: COps -> Faction -> Bool
- isAtWar :: Faction -> FactionId -> Bool
- isAllied :: Faction -> FactionId -> Bool
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.
isHeroFact :: COps -> Faction -> BoolSource
Tell whether the faction consists of heroes.
isHorrorFact :: COps -> Faction -> BoolSource
Tell whether the faction consists of summoned horrors only.
isSpawnFact :: Faction -> BoolSource
Tell whether the faction can spawn actors.
isSummonFact :: COps -> Faction -> BoolSource
Tell whether actors of the faction can be summoned by items, etc.