Safe Haskell | None |
---|
Game.LambdaHack.Common.ServerCmd
Description
Abstract syntax of server commands. See https://github.com/kosmikus/LambdaHack/wiki/Client-server-architecture.
- data CmdSer
- = CmdTakeTimeSer !CmdTakeTimeSer
- | GameRestartSer !ActorId !Text !Int ![(Int, Text)]
- | GameExitSer !ActorId !Int
- | GameSaveSer !ActorId
- data CmdTakeTimeSer
- = MoveSer !ActorId !Vector
- | MeleeSer !ActorId !ActorId
- | DisplaceSer !ActorId !ActorId
- | AlterSer !ActorId !Point !(Maybe Feature)
- | WaitSer !ActorId
- | PickupSer !ActorId !ItemId !Int
- | DropSer !ActorId !ItemId !Int
- | ProjectSer !ActorId !Point !Int !ItemId !Container
- | ApplySer !ActorId !ItemId !Container
- | TriggerSer !ActorId !(Maybe Feature)
- | SetTrajectorySer !ActorId
- aidCmdSer :: CmdSer -> ActorId
- aidCmdTakeTimeSer :: CmdTakeTimeSer -> ActorId
- data FailureSer
- showFailureSer :: FailureSer -> Msg
Documentation
Abstract syntax of server commands.
Constructors
CmdTakeTimeSer !CmdTakeTimeSer | |
GameRestartSer !ActorId !Text !Int ![(Int, Text)] | |
GameExitSer !ActorId !Int | |
GameSaveSer !ActorId |
data CmdTakeTimeSer Source
Constructors
Instances
aidCmdSer :: CmdSer -> ActorIdSource
The actor that starts performing the command (may be dead, after the command is performed).
data FailureSer Source