LambdaHack-0.11.0.1: A game engine library for tactical squad ASCII roguelike dungeon crawlers

Safe Haskell | None
Language | Haskell2010

Game.LambdaHack.Client.UI.Watch.WatchUpdAtomicM

Contents

- Internal operations

Description

Display atomic update commands received by the client.

Synopsis

- watchRespUpdAtomicUI :: MonadClientUI m => UpdAtomic -> m ()
- assignItemRole :: MonadClientUI m => Container -> ItemId -> m ()
- data Threat
- createActorUI :: MonadClientUI m => Bool -> ActorId -> Actor -> m ()
- destroyActorUI :: MonadClientUI m => Bool -> ActorId -> Actor -> m ()
- spotItemBag :: MonadClientUI m => Bool -> Container -> ItemBag -> m ()
- recordItemLid :: MonadClientUI m => ItemId -> Container -> m ()
- moveActor :: MonadClientUI m => ActorId -> Point -> Point -> m ()
- displaceActorUI :: MonadClientUI m => ActorId -> ActorId -> m ()
- moveItemUI :: MonadClientUI m => ItemId -> Int -> ActorId -> CStore -> CStore -> m ()
- discover :: MonadClientUI m => Container -> ItemId -> m ()
- ppHearMsg :: MonadClientUI m => Maybe Int -> HearMsg -> m Text
- ppHearDistanceAdjective :: Maybe Int -> Text
- ppHearDistanceAdverb :: Maybe Int -> Text

# Documentation

watchRespUpdAtomicUI :: MonadClientUI m => UpdAtomic -> m () Source #

Visualize atomic updates sent to the client. This is done in the global state after the command is executed and after the client state is modified by the command. Doesn't modify client state (except a few fields), but only client session (e.g., by displaying messages). This is enforced by types.

# Internal operations

assignItemRole :: MonadClientUI m => Container -> ItemId -> m () Source #

data Threat Source #

#### Instances

Instances details

Eq Threat Source # |
Instance details Defined in Game.LambdaHack.Client.UI.Watch.WatchUpdAtomicM Methods (==) :: Threat -> Threat -> Bool Source # (/=) :: Threat -> Threat -> Bool Source #

createActorUI :: MonadClientUI m => Bool -> ActorId -> Actor -> m () Source #

destroyActorUI :: MonadClientUI m => Bool -> ActorId -> Actor -> m () Source #

spotItemBag :: MonadClientUI m => Bool -> Container -> ItemBag -> m () Source #

recordItemLid :: MonadClientUI m => ItemId -> Container -> m () Source #

moveActor :: MonadClientUI m => ActorId -> Point -> Point -> m () Source #

displaceActorUI :: MonadClientUI m => ActorId -> ActorId -> m () Source #

moveItemUI :: MonadClientUI m => ItemId -> Int -> ActorId -> CStore -> CStore -> m () Source #

discover :: MonadClientUI m => Container -> ItemId -> m () Source #

ppHearMsg :: MonadClientUI m => Maybe Int -> HearMsg -> m Text Source #

ppHearDistanceAdjective :: Maybe Int -> Text Source #

ppHearDistanceAdverb :: Maybe Int -> Text Source #