UNPKG

behaviortree

Version:

A JavaScript implementation of Behavior Trees. They are useful for implementing AIs. For Browsers and NodeJS.

17 lines 723 B
import BehaviorTree from './BehaviorTree'; import Node from './Node'; import { Blackboard, IntrospectionResult, RunResult } from './types'; export default class Introspector { currentResult: IntrospectionResult[]; results: IntrospectionResult[]; tree?: BehaviorTree; constructor(); start(tree: BehaviorTree): void; end(): void; push(node: Node, result: RunResult, blackboard: Blackboard): void; wrapLast(numResults: number, node: Node, result: RunResult, blackboard: Blackboard): void; _toResult(node: Node, result: RunResult, _blackboard: Blackboard): IntrospectionResult; reset(): void; get lastResult(): IntrospectionResult | null; } //# sourceMappingURL=Introspector.d.ts.map