behaviortree
Version:
A JavaScript implementation of Behavior Trees. They are useful for implementing AIs. For Browsers and NodeJS.
17 lines (16 loc) • 586 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("./constants");
const BranchNode_1 = __importDefault(require("./BranchNode"));
class Sequence extends BranchNode_1.default {
constructor() {
super(...arguments);
this.nodeType = 'Sequence';
this.START_CASE = constants_1.SUCCESS;
this.OPT_OUT_CASE = constants_1.FAILURE;
}
}
exports.default = Sequence;