BehaviorContext class final
What a leaf may look at while it ticks or acts.
One per tree and reused, because a tick happens for every thinking actor on every thinking step and allocating one each time is garbage in the step.
Properties
- board ↔ Blackboard
-
The ticking actor's board: its memory, read and written by leaves.
getter/setter pair
- clock → double
-
Seconds the actor has been acting. See Blackboard.clock.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- memory ↔ Object?
-
This node's own memory, kept while it is on the running path and
forgotten when it leaves it. JSON-shaped, like everything on the board.
getter/setter pair
- mind ↔ Mind
-
The actor's mind: its body, its focus, and what it may ask for.
getter/setter pair
- node ↔ int
-
Which node is ticking, by its number in the tree.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited