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 {}
- isHumanFact :: Faction -> Bool
- usesAIFact :: Faction -> Bool
- isSpawnFact :: COps -> 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.
isHumanFact :: Faction -> BoolSource
Tell whether the faction is controlled (at least partially) by a human.
usesAIFact :: Faction -> BoolSource
Tell whether the faction uses AI to control any of its actors.
isSpawnFact :: COps -> 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..