behaviortree
Version:
A JavaScript implementation of Behavior Trees. They are useful for implementing AIs. For Browsers and NodeJS.
15 lines • 697 B
TypeScript
import BranchNode from './BranchNode';
import { ParallelRunConfig, RunResult, Blackboard, MinimalBlueprint, NodeOrRegistration } from './types';
/**
* The Parallel node runs all of its children in parallel and stops running if all of the children are
* successful or the first one returns failure.
*/
export default class Parallel extends BranchNode {
numNodes: number;
nodes: NodeOrRegistration[];
nodeType: string;
constructor(blueprint: MinimalBlueprint);
run(blackboard?: Blackboard, { lastRun, introspector, rerun, registryLookUp }?: ParallelRunConfig): RunResult;
protected calcResult(results: Array<RunResult>): RunResult;
}
//# sourceMappingURL=Parallel.d.ts.map