Liking cljdoc? Tell your friends :D

advenjure.utils


capfirstclj/s

(capfirst s)

Converts first character to upper-case, leaves the rest untouched.

Converts first character to upper-case, leaves the rest untouched.
sourceraw docstring

current-roomclj/s

(current-room game-state)

Get the current room spec from game state.

Get the current room spec from game state.
sourceraw docstring

direction-mappingsclj/s

source

direction-namesclj/s

source

directionsclj/s

source

find-firstclj/s

source

find-itemclj/s

(find-item game-state token)

Try to find the given item name either in the inventory or the current room.

Try to find the given item name either in the inventory or the current room.
sourceraw docstring

get-visible-roomclj/s

(get-visible-room game-state room-name)

Returns the spec of the room by the given name, if it's connected and visible (i.e. known or visited) current one.

Returns the spec of the room by the given name, if it's connected and visible
(i.e. known or visited) current one.
sourceraw docstring

remove-itemclj/s

(remove-item game-state item)
source

replace-itemclj/s

(replace-item game-state old-item new-item)
source

room-as-itemclj/s

(room-as-item room)

Adapt the room record to be used as an item. For now it just removes :items to avoid conflicts.

Adapt the room record to be used as an item. For now it just removes :items
to avoid conflicts.
sourceraw docstring

sayclj/s

(say speech)
source

say-inlineclj/s

(say-inline speech)
source

string-wrapclj/s

(string-wrap text)
(string-wrap text max-size)
source

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

× close