Files
JiboOs/docs/bt/behaviors/Parallel.js
2026-03-16 13:53:01 +02:00

10 lines
532 B
JavaScript

/**
* @class Parallel
* @extends jibo.bt.ParentBehavior
* @memberof jibo.bt.behaviors
* @description Runs its child nodes in parallel. Returns with `Status.FAILED` if one of the children failed
* and `Status.SUCCEEDED` if all children succeeded.
* @param {Object} options See {@link jibo.bt.Behavior} for all options.
* @param {boolean} options.succeedOnOne If the Parallel should succeed when the first child succeeds.
* @param {Array<jibo.bt.Behavior>} [options.children=[]] An array of the Parallel's child behaviors.
*/