ContentsIndex
Util.World
Synopsis
worldPlayer :: World -> Object
worldPlayerRoom :: World -> Object
worldPlayerLocation :: World -> RoomId
getObject :: (Object -> Bool) -> World -> Object
modifyObject :: (Object -> Bool) -> (Object -> Object) -> World -> World
Documentation
worldPlayer :: World -> Object
Get the player object from the world.
worldPlayerRoom :: World -> Object
Determine what room the player is in and get that object from the world.
worldPlayerLocation :: World -> RoomId
Return the RoomId of the room that the player is currently in.
getObject :: (Object -> Bool) -> World -> Object
Use a predicate to get some object from the world.
modifyObject
:: (Object -> Bool)A predicate determining which objects to modify.
-> (Object -> Object)The modification function.
-> World
-> World
Modify some objects in the world.
Produced by Haddock version 0.7