ContentsIndex
Util.Room
Description
Utils for rooms.
Synopsis
isRoom :: RoomId -> Object -> Bool
roomId :: Object -> RoomId
roomInventory :: Object -> [ItemId]
roomAddItem :: ItemId -> Object -> Object
roomRemoveItem :: ItemId -> Object -> Object
Documentation
isRoom :: RoomId -> Object -> Bool
Checks if some object is a Room with a specific RoomId.
roomId :: Object -> RoomId
Get the RoomId from a room.
roomInventory :: Object -> [ItemId]
Get the inventory of a room.
roomAddItem :: ItemId -> Object -> Object
Add an item to a room.
roomRemoveItem :: ItemId -> Object -> Object
Remove an item from a room.
Produced by Haddock version 0.7