ContentsIndex
Verb.Type
Description
The Verb type and parser.
Synopsis
data Verb
= Look
| Inv
| Get
| Drop
| Go Direction
| VerbSpecial String
parseVerb :: String -> Verb
Documentation
data Verb
The Verb data type. This type represents the commands which the player can use to interact with the world.
Constructors
Look
Inv
Get
Drop
Go Direction
VerbSpecial String
show/hide Instances
Eq Verb
Show Verb
parseVerb :: String -> Verb
Parse a string into a verb. If the verb is not a standard one like Look, Inv, Get etc then it is considered special and might be relavent only to a particular room or item.
Produced by Haddock version 0.7