| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Game.LambdaHack.Client.CommonM
Description
Common client monad operations.
Synopsis
- getPerFid :: MonadClient m => LevelId -> m Perception
- aidTgtToPos :: ActorId -> LevelId -> Target -> State -> Maybe Point
- makeLine :: MonadStateRead m => Bool -> Actor -> Point -> Int -> m (Maybe Int)
- maxActorSkillsClient :: MonadClient m => ActorId -> m Skills
- currentSkillsClient :: MonadClient m => ActorId -> m Skills
- pickWeaponClient :: MonadClient m => ActorId -> ActorId -> m (Maybe RequestTimed)
- updateSalter :: MonadClient m => LevelId -> [(Point, ContentId TileKind)] -> m ()
- createSalter :: State -> AlterLid
Documentation
getPerFid :: MonadClient m => LevelId -> m Perception #
Get the current perception of a client.
aidTgtToPos :: ActorId -> LevelId -> Target -> State -> Maybe Point #
Calculate the position of an actor's target.
makeLine :: MonadStateRead m => Bool -> Actor -> Point -> Int -> m (Maybe Int) #
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 #
currentSkillsClient :: MonadClient m => ActorId -> m Skills #
pickWeaponClient :: MonadClient m => ActorId -> ActorId -> m (Maybe RequestTimed) #
updateSalter :: MonadClient m => LevelId -> [(Point, ContentId TileKind)] -> m () #
createSalter :: State -> AlterLid #