Safe Haskell | None |
---|---|
Language | Haskell2010 |
Game.LambdaHack.Client.UI.HandleHumanGlobalClient
Description
Semantics of Cmd
client commands that return server commands.
A couple of them do not take time, the rest does.
Here prompts and menus and displayed, but any feedback resulting
from the commands (e.g., from inventory manipulation) is generated later on,
for all clients that witness the results of the commands.
TODO: document
- moveRunHuman :: MonadClientUI m => Bool -> Bool -> Bool -> Bool -> Vector -> m (SlideOrCmd RequestAnyAbility)
- waitHuman :: MonadClientUI m => m (RequestTimed AbWait)
- moveItemHuman :: forall m. MonadClientUI m => [CStore] -> CStore -> Maybe Part -> Bool -> m (SlideOrCmd (RequestTimed AbMoveItem))
- describeItemHuman :: MonadClientUI m => ItemDialogMode -> m (SlideOrCmd (RequestTimed AbMoveItem))
- projectHuman :: forall m. MonadClientUI m => [Trigger] -> m (SlideOrCmd (RequestTimed AbProject))
- applyHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd (RequestTimed AbApply))
- alterDirHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd (RequestTimed AbAlter))
- triggerTileHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd (RequestTimed AbTrigger))
- runOnceAheadHuman :: MonadClientUI m => m (SlideOrCmd RequestAnyAbility)
- moveOnceToCursorHuman :: MonadClientUI m => m (SlideOrCmd RequestAnyAbility)
- runOnceToCursorHuman :: MonadClientUI m => m (SlideOrCmd RequestAnyAbility)
- continueToCursorHuman :: MonadClientUI m => m (SlideOrCmd RequestAnyAbility)
- gameRestartHuman :: MonadClientUI m => GroupName ModeKind -> m (SlideOrCmd RequestUI)
- gameExitHuman :: MonadClientUI m => m (SlideOrCmd RequestUI)
- gameSaveHuman :: MonadClientUI m => m RequestUI
- tacticHuman :: MonadClientUI m => m (SlideOrCmd RequestUI)
- automateHuman :: MonadClientUI m => m (SlideOrCmd RequestUI)
Commands that usually take time
moveRunHuman :: MonadClientUI m => Bool -> Bool -> Bool -> Bool -> Vector -> m (SlideOrCmd RequestAnyAbility) Source #
waitHuman :: MonadClientUI m => m (RequestTimed AbWait) Source #
Leader waits a turn (and blocks, etc.).
moveItemHuman :: forall m. MonadClientUI m => [CStore] -> CStore -> Maybe Part -> Bool -> m (SlideOrCmd (RequestTimed AbMoveItem)) Source #
describeItemHuman :: MonadClientUI m => ItemDialogMode -> m (SlideOrCmd (RequestTimed AbMoveItem)) Source #
Display items from a given container store and describe the chosen one.
projectHuman :: forall m. MonadClientUI m => [Trigger] -> m (SlideOrCmd (RequestTimed AbProject)) Source #
applyHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd (RequestTimed AbApply)) Source #
alterDirHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd (RequestTimed AbAlter)) Source #
Ask for a direction and alter a tile, if possible.
triggerTileHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd (RequestTimed AbTrigger)) Source #
Leader tries to trigger the tile he's standing on.
runOnceAheadHuman :: MonadClientUI m => m (SlideOrCmd RequestAnyAbility) Source #
moveOnceToCursorHuman :: MonadClientUI m => m (SlideOrCmd RequestAnyAbility) Source #
runOnceToCursorHuman :: MonadClientUI m => m (SlideOrCmd RequestAnyAbility) Source #
continueToCursorHuman :: MonadClientUI m => m (SlideOrCmd RequestAnyAbility) Source #
Commands that never take time
gameRestartHuman :: MonadClientUI m => GroupName ModeKind -> m (SlideOrCmd RequestUI) Source #
gameExitHuman :: MonadClientUI m => m (SlideOrCmd RequestUI) Source #
gameSaveHuman :: MonadClientUI m => m RequestUI Source #
tacticHuman :: MonadClientUI m => m (SlideOrCmd RequestUI) Source #
automateHuman :: MonadClientUI m => m (SlideOrCmd RequestUI) Source #