Safe Haskell | Safe-Inferred |
---|---|
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
Enum KillHow Source # | |
Generic KillHow Source # | |
Show KillHow Source # | |
Binary KillHow Source # | |
Eq KillHow Source # | |
type Rep KillHow Source # | |
Defined in Game.LambdaHack.Common.Analytics type Rep KillHow = D1 ('MetaData "KillHow" "Game.LambdaHack.Common.Analytics" "LambdaHack-0.11.0.1-inplace" 'False) (((C1 ('MetaCons "KillKineticMelee" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "KillKineticRanged" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "KillKineticBlast" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "KillKineticPush" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "KillOtherMelee" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "KillOtherRanged" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "KillOtherBlast" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "KillOtherPush" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "KillActorLaunch" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "KillTileLaunch" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "KillDropLaunch" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "KillCatch" 'PrefixI 'False) (U1 :: Type -> Type))))) |
addFactionKill :: FactionId -> KillHow -> FactionId -> ItemId -> FactionAnalytics -> FactionAnalytics Source #
addActorKill :: ActorId -> KillHow -> FactionId -> ItemId -> ActorAnalytics -> ActorAnalytics Source #