Safe Haskell | Safe-Infered |
---|
Abstract syntax of player commands and their semantics.
- data Cmd
- majorCmd :: Cmd -> Bool
- timedCmd :: Cmd -> Bool
- cmdSemantics :: Cmd -> ActionFrame ()
- cmdDescription :: Cmd -> String
Documentation
Abstract syntax of player commands. The type is abstract, but the values are created outside this module via the Read class (from config file) .
Time cosuming commands are marked as such in help and cannot be invoked in targeting mode on a remote level (level different than the level of the selected hero).
cmdSemantics :: Cmd -> ActionFrame ()Source
The semantics of player commands in terms of the Action
monad.
cmdDescription :: Cmd -> StringSource
Description of player commands.