The database map contains all the live data for a behavior tree. In addition to the keys specific to this namespace, it also has the keys from the event namespace. So that the event namespace functions may be called on a database. The all important blackboard is a key of this database map.
The database map contains all the live data for a behavior tree. In addition to the keys specific to this namespace, it also has the keys from the event namespace. So that the event namespace functions may be called on a database. The all important blackboard is a key of this database map.
(extract some-map)
Extracts the database keys from a map. This is a O(1) operation.
Extracts the database keys from a map. This is a O(1) operation.
(get-blackboard db)
Returns the blackboard
Returns the blackboard
(get-node-data db node-id)
Returns the node specific data. This is used internally by some node types to persist data accross ticks.
Returns the node specific data. This is used internally by some node types to persist data accross ticks.
(get-node-status db node-id)
Returns the stored status of a node. If none is found, the :fresh status is assumed.
Returns the stored status of a node. If none is found, the :fresh status is assumed.
(get-time db)
Returns the time at which this context is executing, as system milliseconds
Returns the time at which this context is executing, as system milliseconds
(get-timer-start-time db timer-name)
Returns the next start time for a timer
Returns the next start time for a timer
(set-blackboard db new-blackboard)
Sets the entire blackboard in one go
Sets the entire blackboard in one go
(set-node-data db node-id node-data)
Sets the node specific data
Sets the node specific data
(set-node-status db node-id status)
Sets the stored status for a node. A fresh status will dissoc this node-id from the map.
Sets the stored status for a node. A fresh status will dissoc this node-id from the map.
(set-time db ms)
Sets the context's execution time, as system milliseconds
Sets the context's execution time, as system milliseconds
(set-timer-start-time db timer-name value)
Sets the next start time for a timer
Sets the next start time for a timer
The keys specific to this namespace
The keys specific to this namespace
(update-blackboard db func)
Updates the blackboard with the specified function
Updates the blackboard with the specified function
(update-node-data db node-id func)
Updates the node specific data with the specified func.
Updates the node specific data with the specified func.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close