Liking cljdoc? Tell your friends :D

cark.behavior-tree.db

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.
raw docstring

base-dbclj/s

a base database

a base database
sourceraw docstring

extractclj/s

(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.
sourceraw docstring

get-blackboardclj/s

(get-blackboard db)

Returns the blackboard

Returns the blackboard
sourceraw docstring

get-node-dataclj/s

(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.
sourceraw docstring

get-node-statusclj/s

(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.
sourceraw docstring

get-timeclj/s

(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
sourceraw docstring

get-timer-start-timeclj/s

(get-timer-start-time db timer-name)

Returns the next start time for a timer

Returns the next start time for a timer
sourceraw docstring

keysclj/s

All the keys of a database

All the keys of a database
sourceraw docstring

makeclj/s

(make)

Creates a new database

Creates a new database
sourceraw docstring

set-blackboardclj/s

(set-blackboard db new-blackboard)

Sets the entire blackboard in one go

Sets the entire blackboard in one go
sourceraw docstring

set-node-dataclj/s

(set-node-data db node-id node-data)

Sets the node specific data

Sets the node specific data
sourceraw docstring

set-node-statusclj/s

(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.
sourceraw docstring

set-timeclj/s

(set-time db ms)

Sets the context's execution time, as system milliseconds

Sets the context's execution time, as system milliseconds
sourceraw docstring

set-timer-start-timeclj/s

(set-timer-start-time db timer-name value)

Sets the next start time for a timer

Sets the next start time for a timer
sourceraw docstring

specific-keysclj/s

The keys specific to this namespace

The keys specific to this namespace
sourceraw docstring

update-blackboardclj/s

(update-blackboard db func)

Updates the blackboard with the specified function

Updates the blackboard with the specified function
sourceraw docstring

update-node-dataclj/s

(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.
sourceraw docstring

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

× close