(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close