(add-item room item)
(add-item room item description)
Add the item to the room with an optional custom description. Returns the updated room.
Add the item to the room with an optional custom description. Returns the updated room.
(connect room-map r1 direction r2)
Connect r1 with r2 in the given direction and make the corresponding connection in r2.
Connect r1 with r2 in the given direction and make the corresponding connection in r2.
(connection-dir room-spec roomkw)
Check if the given room has a connection to a room with the given kw. If it does, return the direction.
Check if the given room has a connection to a room with the given kw. If it does, return the direction.
(describe room)
Describes the room. If the room was not visited and there's an initial-description supplied use it, otherwise use the default description. The items contained in the room will be listed. If there are custom item descriptions defined use them instead of the default list description.
Describes the room. If the room was not visited and there's an initial-description supplied use it, otherwise use the default description. The items contained in the room will be listed. If there are custom item descriptions defined use them instead of the default list description.
(one-way-connect room-map r1 direction r2)
Connect r1 with r2 without the corresponding connection in r2. Note that r2 can be a condition function or string to make a conditional connection.
Connect r1 with r2 without the corresponding connection in r2. Note that r2 can be a condition function or string to make a conditional connection.
(visible-name-mappings room-map current)
Given a room-map and a current room kw return a map of room name (including synonyms) to room keyword, considering only accesible and visited rooms.
Given a room-map and a current room kw return a map of room name (including synonyms) to room keyword, considering only accesible and visited rooms.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close