|
|
|
|
|
Description |
Defines the main types for the game.
|
|
Synopsis |
|
|
|
Documentation |
|
type Name = String |
The name of something.
|
|
type Script = String |
A description of something.
|
|
type Inventory = [ItemId] |
An inventory, carried by some Mobile.
|
|
type Detail = (String, String) |
A detail of a room.
|
|
type World = [Object] |
The world is a list of all the objects in the game.
|
|
data Object |
An object in the game world.
| Constructors | | Instances | |
|
|
data MobId |
ID codes for Mobiles.
| Constructors | | Instances | |
|
|
data RoomId |
Each room in the world has an associated RoomId.
| Constructors | Living | | Bedroom | | Kitchen | | Basement | | Porch | | Path | |
| Instances | |
|
|
data Exit |
An exit can either be freely passable, or have a door in it.
If it is a Door then the associated property in the World must have the value
(PropBool True) for the player to pass.
If the player tries to pass through a door which is closed, the associated bump
bump string is printed.
| Constructors | | Instances | |
|
|
data Direction |
An exit direction. (Direct String) can be used to represent a special named
direction, ie not (n,s,e,w,u,d).
| Constructors | North | | South | | East | | West | | Down | | Up | | Direct String | |
| Instances | |
|
|
data ItemId |
Each item in the world has an associated ItemId.
| Constructors | ItemUnknown String | | PocketLint | | KeyFrontDoor | | Rope | | Knife | | Amulet | |
| Instances | |
|
|
data PropId |
Each property in the world has an associated PropId.
| Constructors | PlayerIsAlive | | FrontDoorUnlocked | | FrontDoorKeyRevealed | |
| Instances | |
|
|
data Prop |
Possible properties.
| Constructors | | Instances | |
|
|
Produced by Haddock version 0.7 |