Safe Haskell | None |
---|
Game.Antisplice.Stats
Description
Provides utility functions for dealing with stats and stereotypes
- class HasStats s where
- class HasStatsM m where
- calcStat :: (MonadPlayer m, MonadAtoms m, MonadRoom m) => StatKey -> m Int
- totalStereo :: (MonadAtoms m, MonadPlayer m, MonadRoom m) => m PlayerStereo
Documentation
Typeclass for every pure data that saves stats
Methods
setStat :: StatKey -> Int -> s -> sSource
Set the given key to the given value
getStat :: StatKey -> s -> IntSource
Lookup the given key
Instances
Typeclass for every monad that saves stats
calcStat :: (MonadPlayer m, MonadAtoms m, MonadRoom m) => StatKey -> m IntSource
Calculates the stats of the objects the player carries
totalStereo :: (MonadAtoms m, MonadPlayer m, MonadRoom m) => m PlayerStereoSource
Calculates the total stereotype the player carries