Safe Haskell | None |
---|---|
Language | Haskell2010 |
Common client monad operations.
- getPerFid :: MonadClient m => LevelId -> m Perception
- aidTgtToPos :: MonadClient m => ActorId -> LevelId -> Target -> m (Maybe Point)
- makeLine :: MonadClient m => Bool -> Actor -> Point -> Int -> m (Maybe Int)
- maxActorSkillsClient :: MonadClient m => ActorId -> m Skills
- currentSkillsClient :: MonadClient m => ActorId -> m Skills
- fullAssocsClient :: MonadClient m => ActorId -> [CStore] -> m [(ItemId, ItemFull)]
- itemToFullClient :: MonadClient m => m (ItemId -> ItemQuant -> ItemFull)
- pickWeaponClient :: MonadClient m => ActorId -> ActorId -> m (Maybe (RequestTimed AbMelee))
- updateSalter :: MonadClient m => LevelId -> [(Point, Id TileKind)] -> m ()
- createSalter :: State -> AlterLid
- aspectRecordFromItemClient :: MonadClient m => ItemId -> Item -> m AspectRecord
- aspectRecordFromActorClient :: MonadClient m => Actor -> [(ItemId, Item)] -> m AspectRecord
- createSactorAspect :: MonadClient m => State -> m ActorAspect
Documentation
getPerFid :: MonadClient m => LevelId -> m Perception Source #
Get the current perception of a client.
aidTgtToPos :: MonadClient m => ActorId -> LevelId -> Target -> m (Maybe Point) Source #
Calculate the position of an actor's target.
makeLine :: MonadClient m => Bool -> Actor -> Point -> Int -> m (Maybe Int) Source #
Counts the number of steps until the projectile would hit an actor or obstacle. Starts searching with the given eps and returns the first found eps for which the number reaches the distance between actor and target position, or Nothing if none can be found.
maxActorSkillsClient :: MonadClient m => ActorId -> m Skills Source #
currentSkillsClient :: MonadClient m => ActorId -> m Skills Source #
fullAssocsClient :: MonadClient m => ActorId -> [CStore] -> m [(ItemId, ItemFull)] Source #
itemToFullClient :: MonadClient m => m (ItemId -> ItemQuant -> ItemFull) Source #
pickWeaponClient :: MonadClient m => ActorId -> ActorId -> m (Maybe (RequestTimed AbMelee)) Source #
updateSalter :: MonadClient m => LevelId -> [(Point, Id TileKind)] -> m () Source #
createSalter :: State -> AlterLid Source #
aspectRecordFromItemClient :: MonadClient m => ItemId -> Item -> m AspectRecord Source #
aspectRecordFromActorClient :: MonadClient m => Actor -> [(ItemId, Item)] -> m AspectRecord Source #
createSactorAspect :: MonadClient m => State -> m ActorAspect Source #