forked from Jibo-Revival-Group/JiboOs
9 lines
419 B
JavaScript
9 lines
419 B
JavaScript
/**
|
|
* @class Switch
|
|
* @extends jibo.bt.ParentBehavior
|
|
* @memberof jibo.bt.behaviors
|
|
* @description Runs its child nodes in sequence until one succeeds. Fails if all of the children failed
|
|
* and succeeds if one child succeeded.
|
|
* @param {Object} options See {@link jibo.bt.Behavior|Behavior} for all options.
|
|
* @param {Array<jibo.bt.Behavior>} [options.children=[]] - An array of the Switch's child behaviors.
|
|
*/ |