Safe Haskell | None |
---|
Game.LambdaHack.Common.Faction
Description
Factions taking part in the game: e.g., two human players controlling the hero faction battling the monster and the animal factions.
Documentation
A unique identifier of a faction in a game.
type FactionDict = EnumMap FactionId FactionSource
All factions in the game, indexed by faction identifier.
Constructors
Faction | |
Fields
|
Diplomacy states. Higher overwrite lower in case of assymetric content.
Outcome of a game.
Current game status.
Constructors
Status | |
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.