CrossClj

0.9.0 docs

SourceDocs



RECENT
    VARS
    ask-ambiguous
    climb
    climb-down
    climb-up
    close
    enter
    exit
    go
    go-back
    help
    inventory
    look
    look-at
    look-inside
    look-to
    make-compound-item-handler
    make-item-handler
    make-move-item-handler
    make-say-verb
    move
    noop
    open
    open-with
    pull
    push
    read_
    restore
    save
    stand
    take-all
    take_
    talk
    unlock
    use-with
    use_

    « Index of all namespaces of this project

    (ask-ambiguous item-name items)
    (exit game-state)
    Close the game.
    
    (go game-state)(go game-state direction)
    Change the location if direction is valid.
    
    (go-back game-state)
    Go to the previous room, if possible.
    
    (inventory game-state)
    Describe the inventory contents.
    
    (look game-state)
    Look around (describe room) and enumerate available movement directions.
    
    (look-to game-state)(look-to game-state direction)
    Describe what's in the given direction.
    
    (make-compound-item-handler verb-name verb-kw)(make-compound-item-handler verb-name verb-kw handler & {:keys [kw-required], :or {kw-required true}})
    The same as above but adapted to compund verbs.
    
    (make-item-handler verb-name verb-kw)(make-item-handler verb-name verb-kw handler & {:keys [kw-required], :or {kw-required true}})
    Takes the verb name, the kw to look up at the item at the handler function,
    wraps the function with the common logic such as trying to find the item,
    executing pre/post conditions, etc.
    (make-move-item-handler verb-name verb-kw)
    (make-say-verb speech)
    (restore game-state)
    Restore a previous game state from file.
    
    (save game-state)
    Save the current game state to a file.
    
    (take-all game-state)
    Go through every item in the room that defines a value for :take, and attempt
    to take it.