blueshell
Version:
A Behavior Tree implementation in modern Javascript
21 lines • 703 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LatchedSequence = void 0;
const Sequence_1 = require("./Sequence");
/**
* Sends an event to each child until one of the returns `FAILURE`, or `RUNNING`, then returns that value.
* If all children return `SUCCESS`, return `SUCCESS`.
* If a child returns `RUNNING`, subsequent events start at that child.
* 1/15/16
* @author Joshua Chaitin-Pollak
*/
class LatchedSequence extends Sequence_1.Sequence {
constructor(name, children) {
super(name, children, true);
}
get symbol() {
return '⍈';
}
}
exports.LatchedSequence = LatchedSequence;
//# sourceMappingURL=LatchedSequence.js.map