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

29 lines
975 B
JavaScript

/**
* @class ParentBehavior
* @extends jibo.bt.Behavior
* @memberof jibo.bt
* @description The baseclass to all behaviors that contain a collection of child Behaviors.
*
* Subclasses: {@link jibo.bt.behaviors.Parallel|Parallel}, {@link jibo.bt.behaviors.Random|Random}, {@link jibo.bt.behaviors.Sequence|Sequence}, {@link jibo.bt.behaviors.Switch|Switch}
*
* @param {Object} [options] See {@link jibo.bt.Behavior|Behavior} for all options.
* @param {Array<jibo.bt.Behavior>} [options.children=[]] Child behaviors
* @param {Object} [defaultOptions] Defaults for options
*/
/**
* Destroy this
*/
/**
* Set the collection of children
* @name jibo.bt.ParentBehavior#children
* @type {Array<jibo.bt.Behavior>}
*/
/**
* Internal stop the behavior
* @method jibo.bt.ParentBehavior#_stop
* @return {Promise<void>} A promise that resolves after any asynchronous cleanup has been performed.
* @private
*/