Liking cljdoc? Tell your friends :D

cark.behavior-tree.node-defs.on-event

Once the :on-event node becomes :running, it will be able to pick an incoming event. When it does, it will execute its child, succeeding or failing according to the child's result.

Parameters:

  • :event : A keyword, or keyword returning context function. The name of the event to pick.
  • :pick? : A context function with two parameters. first the tree context, then the event argument being considered. This acts as an additional filter when considering incoming events to be picked. The event will be picked if this function returns a truthy value.
  • :bind-arg : the keyword name of the var to which the event argument will be bound.
Once the :on-event node becomes :running, it will be able to pick an incoming event. When it does, it will execute its child, succeeding or failing according to the child's result.

Parameters:
- :event : A keyword, or keyword returning context function. The name of the event to pick.
- :pick? : A context function with two parameters. first the tree context, then the event argument being considered. This acts as an additional filter when considering incoming events to be picked. The event will be picked if this function returns a truthy value.
- :bind-arg : the keyword name of the var to which the event argument will be bound.
raw docstring

compile-nodeclj/s

(compile-node tree id tag params [child-id])
source

logclj/s

(log value)
source

registerclj/s

(register)
source

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

× close