Liking cljdoc? Tell your friends :D

advenjure.rooms


add-itemclj/s

(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.
sourceraw docstring

connectclj/s

(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.
sourceraw docstring

connection-dirclj/s

(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.
sourceraw docstring

describeclj/s

(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.
sourceraw docstring

directionsclj/s

source

makeclj/s

(make name description & {:as extras})
source

matching-directionsclj/s

source

namesclj/s

(names room)
source

one-way-connectclj/s

(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.
sourceraw docstring

Roomcljs

source

visible-name-mappingsclj/s

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close