forked from Jibo-Revival-Group/JiboOs
10 lines
532 B
JavaScript
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.
|
|
*/ |