Liking cljdoc? Tell your friends :D

advenjure.game


default-promptclj/s

(default-prompt gs)
source

hooksclj/s

source

makeclj/s

(make room-map start-room)
(make room-map start-room inventory)

Make a new game state based on a room map and an optional initial inventory set.

Make a new game state based on a room map and an optional initial inventory set.
sourceraw docstring

process-inputclj/s

(process-input game-state input)

Take an input comand, find the verb in it and execute its action handler.

Take an input comand, find the verb in it and execute its action handler.
sourceraw docstring

runclj/s

(run game-state finished? & {:as extras})

Run the game loop. Requires a finished? function to decide when to terminate the loop. The rest of the parameters are configuration key/values.

Run the game loop. Requires a finished? function to decide when to terminate
the loop. The rest of the parameters are configuration key/values.
sourceraw docstring

say-messageclj/s

(say-message gs kw)
source

use-pluginclj/s

(use-plugin gs plugin-spec)

Merges the given plugin spec into the given game configuration.

Merges the given plugin spec into the given game configuration.
sourceraw docstring

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

× close