Safe Haskell | None |
---|
Semantics of Cmd
client commands that return server commands.
A couple of them do not take time, the rest does.
TODO: document
- moveRunHuman :: MonadClientUI m => Bool -> Vector -> m (SlideOrCmd CmdTakeTimeSer)
- waitHuman :: MonadClientUI m => m CmdTakeTimeSer
- pickupHuman :: MonadClientUI m => m (SlideOrCmd CmdTakeTimeSer)
- dropHuman :: MonadClientUI m => m (SlideOrCmd CmdTakeTimeSer)
- projectHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd CmdTakeTimeSer)
- applyHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd CmdTakeTimeSer)
- alterDirHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd CmdTakeTimeSer)
- triggerTileHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd CmdTakeTimeSer)
- stepToTargetHuman :: MonadClientUI m => m (SlideOrCmd CmdTakeTimeSer)
- resendHuman :: MonadClientUI m => m (SlideOrCmd CmdTakeTimeSer)
- gameRestartHuman :: MonadClientUI m => Text -> m (SlideOrCmd CmdSer)
- gameExitHuman :: MonadClientUI m => m (SlideOrCmd CmdSer)
- gameSaveHuman :: MonadClientUI m => m CmdSer
- type SlideOrCmd a = Either Slideshow a
- failWith :: MonadClientUI m => Msg -> m (SlideOrCmd a)
Commands that usually take time
moveRunHuman :: MonadClientUI m => Bool -> Vector -> m (SlideOrCmd CmdTakeTimeSer)Source
waitHuman :: MonadClientUI m => m CmdTakeTimeSerSource
Leader waits a turn (and blocks, etc.).
pickupHuman :: MonadClientUI m => m (SlideOrCmd CmdTakeTimeSer)Source
dropHuman :: MonadClientUI m => m (SlideOrCmd CmdTakeTimeSer)Source
Drop a single item.
projectHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd CmdTakeTimeSer)Source
applyHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd CmdTakeTimeSer)Source
alterDirHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd CmdTakeTimeSer)Source
Ask for a direction and alter a tile, if possible.
triggerTileHuman :: MonadClientUI m => [Trigger] -> m (SlideOrCmd CmdTakeTimeSer)Source
Leader tries to trigger the tile he's standing on.
stepToTargetHuman :: MonadClientUI m => m (SlideOrCmd CmdTakeTimeSer)Source
resendHuman :: MonadClientUI m => m (SlideOrCmd CmdTakeTimeSer)Source
Commands that never take time
gameRestartHuman :: MonadClientUI m => Text -> m (SlideOrCmd CmdSer)Source
gameExitHuman :: MonadClientUI m => m (SlideOrCmd CmdSer)Source
gameSaveHuman :: MonadClientUI m => m CmdSerSource
Helper definitions
type SlideOrCmd a = Either Slideshow aSource
failWith :: MonadClientUI m => Msg -> m (SlideOrCmd a)Source