UNPKG

blueshell

Version:

A Behavior Tree implementation in modern Javascript

17 lines (16 loc) 594 B
/** * Created by josh on 1/10/16. */ import { Selector } from './Selector'; import { BlueshellState, BaseNode } from '../models'; /** * Sends an event to each child until one of them returns `SUCCESS` or `RUNNING`, then returns that value. * If we exhaust all the children, return `FAILURE`. * If a child returns `RUNNING`, subsequent events start at that child. * 1/10/16 * @author Joshua Chaitin-Pollak */ export declare class LatchedSelector<S extends BlueshellState, E> extends Selector<S, E> { constructor(name: string, children: BaseNode<S, E>[]); get symbol(): string; }