Liking cljdoc? Tell your friends :D

advenjure.hooks


eval-directionclj/s

(eval-direction game-state direction)

Eval the precondition found in the given direction of the current room.

Eval the precondition found in the given direction of the current room.
sourceraw docstring

eval-postconditionclj/s

(eval-postcondition condition old-state new-state)

If there's a postcondition defined, evaluate it and return new game-state. Otherwise return the game-state unchanged.

If there's a postcondition defined, evaluate it and return new game-state.
Otherwise return the game-state unchanged.
sourceraw docstring

eval-preconditionclj/s

(eval-precondition condition & args)

If the condition is a function return it's value, otherwise return unchanged.

If the condition is a function return it's value, otherwise return unchanged.
sourceraw docstring

executeclj/s

(execute game-state hook-kw & extra)

Pipe the game state through the hooks loaded for the given event kw, passing the extra parameters in each step.

Pipe the game state through the hooks loaded for the given event kw,
passing the extra parameters in each step.
sourceraw docstring

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

× close