blueshell
Version:
A Behavior Tree implementation in modern Javascript
22 lines • 662 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RepeatOnResult = void 0;
/**
* Created by josh on 1/12/16.
*/
const RepeatWhen_1 = require("./RepeatWhen");
/**
* The child Node repeats handling the event if the child resulted in a specified status.
* 1/12/16
* @author Joshua Chaitin-Pollak
*/
class RepeatOnResult extends RepeatWhen_1.RepeatWhen {
constructor(repeatRes, child) {
super('ResultEquals-' + repeatRes, child, (state, event, res) => res === repeatRes);
}
get symbol() {
return '⊜↻';
}
}
exports.RepeatOnResult = RepeatOnResult;
//# sourceMappingURL=RepeatOnResult.js.map