| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Game.LambdaHack.Common.Analytics
Contents
Description
Per-actor analytics of personal feats.
Synopsis
- type FactionAnalytics = EnumMap FactionId Analytics
- type ActorAnalytics = EnumMap ActorId Analytics
- type GenerationAnalytics = EnumMap SLore (EnumMap ItemId Int)
- type KillMap = EnumMap FactionId (EnumMap ItemId Int)
- newtype Analytics = Analytics {}
- data KillHow
- emptyAnalytics :: Analytics
- addFactionKill :: FactionId -> KillHow -> FactionId -> ItemId -> FactionAnalytics -> FactionAnalytics
- addActorKill :: ActorId -> KillHow -> FactionId -> ItemId -> ActorAnalytics -> ActorAnalytics
- addKill :: KillHow -> FactionId -> ItemId -> Maybe Analytics -> Analytics
Documentation
type FactionAnalytics = EnumMap FactionId Analytics Source #
Summary analytics data for each faction.
type GenerationAnalytics = EnumMap SLore (EnumMap ItemId Int) Source #
Statistics of possible and actual generation of items for each lore kind.
Statistics of past events concerning an actor.
Constructors
| Analytics | |
Fields | |
Labels of individual kill count analytics.
Constructors
| KillKineticMelee | |
| KillKineticRanged | |
| KillKineticBlast | |
| KillKineticPush | |
| KillOtherMelee | |
| KillOtherRanged | |
| KillOtherBlast | |
| KillOtherPush | |
| KillActorLaunch | |
| KillTileLaunch | |
| KillDropLaunch | |
| KillCatch |
Instances
addFactionKill :: FactionId -> KillHow -> FactionId -> ItemId -> FactionAnalytics -> FactionAnalytics Source #
addActorKill :: ActorId -> KillHow -> FactionId -> ItemId -> ActorAnalytics -> ActorAnalytics Source #