/** * @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} [options.children=[]] Child behaviors * @param {Object} [defaultOptions] Defaults for options */ /** * Destroy this */ /** * Set the collection of children * @name jibo.bt.ParentBehavior#children * @type {Array} */ /** * Internal stop the behavior * @method jibo.bt.ParentBehavior#_stop * @return {Promise} A promise that resolves after any asynchronous cleanup has been performed. * @private */