// hasIndirectObjects.js
(function () {
/* global AdventureJS A */
var p = AdventureJS.Assets.Asset.prototype;
/**
* <strong>hasIndirectObjects</strong> is a method to check
* whether this asset has any particular indirect objects specified
* by the author for use with the specified verb.
* @memberOf AdventureJS.Assets.Asset
* @method AdventureJS.Assets.Asset#hasIndirectObjects
* @param {String} verb
* @returns {Boolean}
*/
p.hasIndirectObjects = function Asset_hasIndirectObjects(verb) {
if (!this.isDOV(verb)) return false;
// is this.dov[verb].with_assets !empty?
if (this.dov[verb]?.with_anything) {
return true;
}
// is this.dov[verb].with_assets !empty?
if (this.dov[verb]?.with_assets.length) {
return true;
}
// is this.dov[verb].with_classes !empty?
if (this.dov[verb]?.with_classes.length) {
return true;
}
return false;
};
})();