Safe Haskell | None |
---|
Abstract syntax human player commands.
- data HumanCmd
- = Move !VectorXY
- | Run !VectorXY
- | Wait
- | Pickup
- | Drop
- | Project ![Trigger]
- | Apply ![Trigger]
- | AlterDir ![Trigger]
- | TriggerTile ![Trigger]
- | GameRestart !Text
- | GameExit
- | GameSave
- | SelectHero !Int
- | MemberCycle
- | MemberBack
- | Inventory
- | TgtFloor
- | TgtEnemy
- | TgtAscend !Int
- | EpsIncr !Bool
- | Cancel
- | Accept
- | Clear
- | History
- | MarkVision
- | MarkSmell
- | MarkSuspect
- | Help
- data Trigger
- majorHumanCmd :: HumanCmd -> Bool
- minorHumanCmd :: HumanCmd -> Bool
- noRemoteHumanCmd :: HumanCmd -> Bool
- cmdDescription :: HumanCmd -> Text
Documentation
Abstract syntax of player commands.
majorHumanCmd :: HumanCmd -> BoolSource
Major commands land on the first page of command help.
minorHumanCmd :: HumanCmd -> BoolSource
Minor commands land on the second page of command help.
noRemoteHumanCmd :: HumanCmd -> BoolSource
Commands that are forbidden on a remote level, because they would usually take time when invoked on one. Not that movement commands are not included, because they take time on normal levels, but don't take time on remote levels, that is, in targeting mode.
cmdDescription :: HumanCmd -> TextSource
Description of player commands.