Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 -> Vector -> m (SlideOrCmd RequestAnyAbility)
- waitHuman :: MonadClientUI m => m (RequestTimed AbWait)
- moveItemHuman :: MonadClientUI m => [CStore] -> CStore -> Maybe MU.Part -> Bool -> m (SlideOrCmd (RequestTimed AbMoveItem))
- projectHuman :: 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))
- stepToTargetHuman :: 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 -> Vector -> m (SlideOrCmd RequestAnyAbility) Source
waitHuman :: MonadClientUI m => m (RequestTimed AbWait) Source
Leader waits a turn (and blocks, etc.).
moveItemHuman :: MonadClientUI m => [CStore] -> CStore -> Maybe MU.Part -> Bool -> m (SlideOrCmd (RequestTimed AbMoveItem)) Source
projectHuman :: 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.
stepToTargetHuman :: 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